Attach VS Code via CLI #3710
-
I start my work day by opening a Windows Terminal profile. This profile has a command that opens code to my working directory. I then manually have to go to the docker extension, right click on my container, and click attach VS Code. Can I tell the extension to attach to the container via the CLI to avoid doing it manually? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
@devhl-labs have you considered using a dev container? Once you configure a dev container for particular folder/workspace, VS Code will automatically open that folder in container as a default. Also FYI, the "attach VS Code" function is provided by Dev Containers extension, not Docker extension, so if you encounter any problems with using it (or any problems with dev containers), the best repo to open an issue/ask questions is https://github.com/microsoft/vscode-remote-release Let us know please if that helps |
Beta Was this translation helpful? Give feedback.
@devhl-labs have you considered using a dev container? Once you configure a dev container for particular folder/workspace, VS Code will automatically open that folder in container as a default.
Also FYI, the "attach VS Code" function is provided by Dev Containers extension, not Docker extension, so if you encounter any problems with using it (or any problems with dev containers), the best repo to open an issue/ask questions is https://github.com/microsoft/vscode-remote-release
Let us know please if that helps