Skip to content

Commit 2dc8baa

Browse files
committed
Update docs
1 parent adca58a commit 2dc8baa

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

docs/open-in-code.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,11 @@
22

33
The `devcontainer open-in-code` command opens the current folder in VS Code as a dev container, i.e. it skips the normal step of opening in VS Code and then clicking # on the "Re-open in container" prompt to reload the window as a dev container. With `devcontainer open-in-code` you get straight to the dev container!
44

5-
You can also use `devcontainer open-in-code <path>` to open a different folder as a devcontainer.
5+
You can also use `devcontainer open-in-code <path>` to open a the devcontainer from a different folder.
6+
7+
The command also supports the `--sub-folder` option. This allows you to specify a sub-folder within the folder that contains the devcontainer configuration (i.e. with the `.devcontainer` folder or `.devcontainer.json` file).
8+
9+
The `open-in-code` command will walk up the tree from the current/specified folder until it finds a folder with a devcontainer configuration, and then open that folder in VS Code as a dev container.
10+
If `--sub-folder` is not specified and the devcontainer configuration is found in a parent folder, relative path to the current folder is used as the sub-folder.
611

712
If you want to use the VS Code Insiders release, you can use `devcontainer open-in-code-insiders`.

0 commit comments

Comments
 (0)