Skip to content

Commit 733b0ba

Browse files
authored
Fix .devcontainer.json language (take two) (#15813)
Fix .devcontainer.json language (take two)
1 parent 5caa6f2 commit 733b0ba

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

content/github/developing-online-with-codespaces/configuring-codespaces-for-your-project.md

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,9 @@ If you don't define a configuration in your repository, {% data variables.produc
2121

2222
You can create a default codespace configuration using a pre-built container configuration for your project type, or you can create a custom configuration specific to your project's needs.
2323

24-
{% data variables.product.prodname_codespaces %} uses settings contained in a file named `devcontainer.json` in the root of the repository or in a `.devcontainer` folder. You can use `devcontainer.json` to set default settings for the entire codespace environment, including the {% data variables.product.prodname_vscode %} editor, but you can also set editor-specific settings in a file named `.vscode/settings.json`.
24+
{% data variables.product.prodname_codespaces %} uses settings contained in a configuration file named `devcontainer.json`. {% data reusables.codespaces.devcontainer-location %}
25+
26+
You can use your `devcontainer.json` to set default settings for the entire codespace environment, including the {% data variables.product.prodname_vscode %} editor, but you can also set editor-specific settings in a file named `.vscode/settings.json`.
2527

2628
Changes to a repository's codespace configuration apply only to every new codespace and do not affect any existing codespace.
2729

@@ -38,7 +40,9 @@ Each new codespace created from a branch which contains the `.devcontainer` fold
3840

3941
### Creating a custom codespace configuration
4042

41-
If none of the pre-built configurations meet your needs, you can create a custom configuration by adding a `devcontainer.json` file to the root of your repository or a `.devcontainer` folder. In the file, you can use supported configuration keys to specify aspects of the codespace's environment, like which {% data variables.product.prodname_vscode %} extensions will be installed.
43+
If none of the pre-built configurations meet your needs, you can create a custom configuration by adding a `devcontainer.json` file. {% data reusables.codespaces.devcontainer-location %}
44+
45+
In the file, you can use supported configuration keys to specify aspects of the codespace's environment, like which {% data variables.product.prodname_vscode %} extensions will be installed.
4246

4347
{% data reusables.codespaces.vscode-settings-order %}
4448

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
This file can be located in the root of the repository or in a folder called `.devcontainer`. If the file is located in the root of the repository, the filename must begin with a period: `.devcontainer.json`.

0 commit comments

Comments
 (0)