Setting your default editor for Codespaces

You can set your default editor for Codespaces in your personal settings page.

Codespaces is available for organizations using GitHub Team or GitHub Enterprise Cloud. For more information, see "GitHub's products."

On the settings page, you can set your editor preference so that any newly created codespaces are opened automatically in either Visual Studio Code for Web or the Visual Studio Code desktop application.

If you want to use Visual Studio Code as your default editor for Codespaces, you need to install Visual Studio Code and the GitHub Codespaces extension for Visual Studio Code. For more information, see the download page for Visual Studio Code and the GitHub Codespaces extension on the Visual Studio Code marketplace.

Setting your default editor

  1. In the upper-right corner of any page, click your profile photo, then click Settings. Settings icon in the user bar
  2. In the left sidebar, click Codespaces. Codespaces tab in the user settings sidebar
  3. Under "Editor preference", select the option you want. Setting your editor If you choose Visual Studio Code, Codespaces will automatically open in the desktop application when you next create a codespace. You may need to allow access to both your browser and Visual Studio Code for it to open successfully. Setting your editor

Did this doc help you?

Privacy policy

Help us make these docs great!

All GitHub docs are open source. See something that's wrong or unclear? Submit a pull request.

Make a contribution

Or, learn how to contribute.