标签:star vs code ogg window enable config hit file ram
用户设置文件保存在如下目录:
%APPDATA%\Code\User\settings.json
$HOME/Library/Application Support/Code/User/settings.json
$HOME/.config/Code/User/settings.json
三种方式更改默认设置:
setting.json
文件;ctrl+,
),可以打开设置面板;Ctrl+Shift+P
打开命令面板,输入Preferences: Open User Settings
或Preferences: Open Workspace Settings
。修改的配置setting.json
{
"window.zoomLevel": 0,
"editor.renderControlCharacters": true, //显示tab、空格
"editor.renderWhitespace": "all",
"editor.minimap.enabled": false, //关闭右侧mini图
"window.menuBarVisibility": "toggle", //alt显示菜单
"workbench.activityBar.visible": false //关闭左侧设置栏
}
快捷键:%APPDATA%\Code\User\keybindings.json
// 将键绑定放在此文件中以覆盖默认值auto[]
[
{
"key": "ctrl+oem_plus",
"command": "-workbench.action.zoomIn"
},
{
"key": "ctrl+oem_plus",
"command": "editor.action.fontZoomIn"
},
{
"key": "ctrl+oem_minus",
"command": "-workbench.action.zoomOut"
},
{
"key": "ctrl+oem_minus",
"command": "editor.action.fontZoomOut"
},
{
"key": "ctrl+k ctrl+a", //左侧设置栏
"command": "workbench.action.toggleActivityBarVisibility"
},
{
"key": "ctrl+b", //屏蔽快捷键-切换侧边栏可见性
"command": "-workbench.action.toggleSidebarVisibility"
},
{
"key": "ctrl+k ctrl+b", //切换侧边栏可见性
"command": "workbench.action.toggleSidebarVisibility"
}
]
文件保存在当前目录的.vscode文件夹下。
vscode插件默认的安装位置:%USERPROFILE%\.vscode\extensions
可使用下面两种方法,将插件保存在Code.exe所在的位置。
在原本的目标后加入--extensions-dir
"新的插件存储位置",例如
"Code.exe" --extensions-dir "C:\Program Files\extensions"
@echo off
:: 当前文件所在的完整路径
set HOME=%~dp0
:: 执行命令,但不显示CMD命令提示符窗口
if "%1" == "h" goto begin
start mshta vbscript:createobject("wscript.shell").run("""%~nx0"" h",0) (window.close)&&exit
:begin
code --extensions-dir %HOME%\extensions
建立联接(推荐这种方式)
rmdir "%USERPROFILE%\.vscode"
::md %USERPROFILE%\.vscode
mklink /J "%USERPROFILE%\.vscode" ".vscode"
标签:star vs code ogg window enable config hit file ram
原文地址:https://www.cnblogs.com/ourweiguan/p/10987118.html