VS Code 使用技巧

平时工作涉及多种不种的写作环境, 比如: 写c++程序, 写java程序, 写golang程序, 写python程序, 写react程序, 写vue程序, 写各种文档等等。

不同写作环境, 安装的 vscode 插件不同。多种环境混在一些用。插件不便于管理, 并且插件安装太多影响性能。

可通过使用命令行启动, 为不同的项目, 指定对应的扩展插件目录及用户数据目录。

goot-tools

ssh-good-tools-doc


$VSCODE_USER_DIR = "d:\history\9999-12\code\ssh-good-tools-doc"

# Remove-Item -Force -Recurse "$VSCODE_USER_DIR"

D:\apps\other\VSCode-win32-x64-1.85.2\Code.exe `
--extensions-dir=$VSCODE_USER_DIR\extensions `
--user-data-dir=$VSCODE_USER_DIR\user-data

clear

localhost-good-tools-deploy


$VSCODE_USER_DIR = "d:\history\9999-12\code\localhost-good-tools-deploy"

# Remove-Item -Force -Recurse "$VSCODE_USER_DIR"

D:\apps\other\VSCode-win32-x64-1.85.2\Code.exe `
D:\workspace\good-tools\good-tools-deploy\good-tools `
--extensions-dir $VSCODE_USER_DIR\extensions `
--user-data-dir $VSCODE_USER_DIR\user-data

clear

wsl-good-tools-web


$VSCODE_USER_DIR = "d:\history\9999-12\code\wsl-good-tools-web"

# Remove-Item -Force -Recurse "$VSCODE_USER_DIR"

D:\apps\other\VSCode-win32-x64-1.85.2\Code.exe `
--extensions-dir $VSCODE_USER_DIR\extensions `
--user-data-dir $VSCODE_USER_DIR\user-data

clear

localhost-good-tools-temp


$VSCODE_USER_DIR = "d:\history\9999-12\code\localhost-good-tools-temp"

# Remove-Item -Force -Recurse "$VSCODE_USER_DIR"

D:\apps\other\VSCode-win32-x64-1.85.2\Code.exe `
--extensions-dir $VSCODE_USER_DIR\extensions `
--user-data-dir $VSCODE_USER_DIR\user-data

clear

es

localhost-es-doc


$VSCODE_USER_DIR = "d:\history\9999-12\code\localhost-es-doc"

# Remove-Item -Force -Recurse "$VSCODE_USER_DIR"

D:\apps\other\VSCode-win32-x64-1.85.2\Code.exe `
--extensions-dir=$VSCODE_USER_DIR\extensions `
--user-data-dir=$VSCODE_USER_DIR\user-data

clear

localhost-es-deploy


$VSCODE_USER_DIR = "d:\history\9999-12\code\localhost-es-deploy"

# Remove-Item -Force -Recurse "$VSCODE_USER_DIR"

D:\apps\other\VSCode-win32-x64-1.85.2\Code.exe `
D:\workspace\es-deploy\es `
--extensions-dir=$VSCODE_USER_DIR\extensions `
--user-data-dir=$VSCODE_USER_DIR\user-data

clear

wsl-es-bodycam-web-ui-1


$VSCODE_USER_DIR = "d:\history\9999-12\code\wsl-es-bodycam-web-ui-1"

# Remove-Item -Force -Recurse "$VSCODE_USER_DIR"

D:\apps\other\VSCode-win32-x64-1.85.2\Code.exe `
--extensions-dir=$VSCODE_USER_DIR\extensions `
--user-data-dir=$VSCODE_USER_DIR\user-data

clear

ssh-es-bodycam-usb-utils


$VSCODE_USER_DIR = "d:\history\9999-12\code\ssh-es-bodycam-usb-utils"

# Remove-Item -Force -Recurse "$VSCODE_USER_DIR"

D:\apps\other\VSCode-win32-x64-1.85.2\Code.exe `
--extensions-dir=$VSCODE_USER_DIR\extensions `
--user-data-dir=$VSCODE_USER_DIR\user-data

clear

localhost-es-center-server-deploy


$VSCODE_USER_DIR = "d:\history\9999-12\code\localhost-es-center-server-deploy"

# Remove-Item -Force -Recurse "$VSCODE_USER_DIR"

D:\apps\other\VSCode-win32-x64-1.85.2\Code.exe `
D:\workspace\es-center-server-deploy\es-center-server `
--extensions-dir=$VSCODE_USER_DIR\extensions `
--user-data-dir=$VSCODE_USER_DIR\user-data

clear

wsl-es-center-server-web-ui


$VSCODE_USER_DIR = "d:\history\9999-12\code\wsl-es-center-server-web-ui"

# Remove-Item -Force -Recurse "$VSCODE_USER_DIR"

D:\apps\other\VSCode-win32-x64-1.85.2\Code.exe `
--extensions-dir=$VSCODE_USER_DIR\extensions `
--user-data-dir=$VSCODE_USER_DIR\user-data

clear

localhost-es-center-server-services


$VSCODE_USER_DIR = "d:\history\9999-12\code\localhost-es-center-server-services"

# Remove-Item -Force -Recurse "$VSCODE_USER_DIR"

D:\apps\other\VSCode-win32-x64-1.85.2\Code.exe `
D:\workspace\es-center-server-services `
--extensions-dir=$VSCODE_USER_DIR\extensions `
--user-data-dir=$VSCODE_USER_DIR\user-data

clear

wsl-es-center-server-main-service-doc


$VSCODE_USER_DIR = "d:\history\9999-12\code\wsl-es-center-server-main-service-doc"

# Remove-Item -Force -Recurse "$VSCODE_USER_DIR"

D:\apps\other\VSCode-win32-x64-1.85.2\Code.exe `
--extensions-dir=$VSCODE_USER_DIR\extensions `
--user-data-dir=$VSCODE_USER_DIR\user-data

clear

wsl-es-center-server-app-service-doc


$VSCODE_USER_DIR = "d:\history\9999-12\code\wsl-es-center-server-app-service-doc"

# Remove-Item -Force -Recurse "$VSCODE_USER_DIR"

D:\apps\other\VSCode-win32-x64-1.85.2\Code.exe `
--extensions-dir=$VSCODE_USER_DIR\extensions `
--user-data-dir=$VSCODE_USER_DIR\user-data

clear

wsl-es-center-server-device-service-doc


$VSCODE_USER_DIR = "d:\history\9999-12\code\wsl-es-center-server-device-service-doc"

# Remove-Item -Force -Recurse "$VSCODE_USER_DIR"

D:\apps\other\VSCode-win32-x64-1.85.2\Code.exe `
--extensions-dir=$VSCODE_USER_DIR\extensions `
--user-data-dir=$VSCODE_USER_DIR\user-data

clear

xiandiannaizhan

localhost-xiandiannaizhan-deploy


$VSCODE_USER_DIR = "d:\history\9999-12\code\localhost-xiandiannaizhan-deploy"

# Remove-Item -Force -Recurse "$VSCODE_USER_DIR"

D:\apps\other\VSCode-win32-x64-1.85.2\Code.exe `
D:\workspace\xiandiannaizhan\xiandiannaizhan-deploy\xiandiannaizhan `
--extensions-dir $VSCODE_USER_DIR\extensions `
--user-data-dir $VSCODE_USER_DIR\user-data

clear

Last Updated: