0
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 1 year has passed since last update.

VSCode devcontainerでworkspaceを開く方法

Posted at

こちらのissueを参考にさせていただきました。
https://github.com/microsoft/vscode-remote-release/issues/3665#issuecomment-1712834856

devcontainer.json
//略
	"customizations": {
		"vscode": {
  			"settings": {
				"autoOpenWorkspace.enableAutoOpenAlwaysFirst": true
			},
			"extensions": [
				"zoma.vscode-auto-open-workspace",
			]
		}
	},
 //略

ワーキングディレクトリに存在する.code-workspaceファイルを開く拡張機能を入れています。この拡張機能の設定としてデフォルトで.code-workspaceファイルを開く設定を追加しています。


以下のような.code-workspaceファイルをルートに置くと自動で開いてくれます

workspace.code-workspace
{
	"folders": [
		{
			"path": "."
		},
		{
			"path": "src"
		}
	],
	"settings": {}
}
0
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?