Skip to content

Instantly share code, notes, and snippets.

@real-jiakai
Created February 19, 2023 05:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save real-jiakai/7762c8e3f47ab151e43223b71a13db2f to your computer and use it in GitHub Desktop.
Save real-jiakai/7762c8e3f47ab151e43223b71a13db2f to your computer and use it in GitHub Desktop.
my global vscode settings config.
{
// 工作区图标主题
"workbench.iconTheme": "material-icon-theme",
// 工作区侧边栏位置
"workbench.sideBar.location": "right",
// 控制对于未经信任的文件的处理方式【VS Code 将尝试打开这些文件,但在打开前会进行一些安全检查。如果发现问题,VS Code 将阻止打开文件,并在编辑器的底部显示一个安全警告。您需要手动选择是否打开文件】
"security.workspace.trust.untrustedFiles": "open",
// 工作区主题
"workbench.colorTheme": "Default Light+",
// 保存文件自动对代码格式化
"editor.formatOnSave": true,
// 编辑器界面缩放级别设置为自动缩放
"window.zoomLevel": -1,
// 鼠标放大缩小界面
"editor.mouseWheelZoom": true,
// 编辑器建议【指示 VS Code 在代码建议列表中默认选择第一个建议项】
"editor.suggestSelection": "first",
// 配置 Windows 平台上终端的集成选项
"terminal.integrated.profiles.windows": {
"Git-Bash": {
"path": "D:\\Environment\\Git\\bin\\bash.exe",
"icon": "terminal-bash"
},
"cmd": {
"path": "C:\\Windows\\System32\\cmd.exe",
"icon": "terminal-cmd"
},
"PowerShell": {
"icon": "terminal-powershell",
"path": "C:\\Windows\\System32\\WindowsPowerShell\\v1.0\\powershell.exe"
}
},
// 配置终端中的字体
"terminal.integrated.fontFamily": "FiraCode Nerd Font",
// 指定 Windows 平台上默认使用的终端配置
"terminal.integrated.defaultProfile.windows": "Git-Bash",
"debug.console.fontSize": 16,
// 编辑器字体大小
"editor.fontSize": 16,
"editor.formatOnType": true,
// 终端字体大小
"terminal.integrated.fontSize": 17,
// 在编辑器中自动显示建议列表
"editor.inlineSuggest.enabled": true,
// Python格式化设置
"[python]": {
"editor.defaultFormatter": "ms-python.black-formatter",
"editor.formatOnSave": true
},
"python.formatting.provider": "none",
// liveserver设置
"liveServer.settings.CustomBrowser": "firefox",
// 用于配置是否显示 Live Server 信息消息
"liveServer.settings.donotShowInfoMsg": true,
// github copilot配置。
"github.copilot.enable": {
// 启用 "GitHub Copilot" 在所有支持的语言中工作
"*": true,
},
// 启用编辑器的粘性滚动功能
"editor.stickyScroll.enabled": true,
// 用于控制 JavaScript 文件移动时是否更新导入语句的设置
"javascript.updateImportsOnFileMove.enabled": "always",
"remote.SSH.remotePlatform": {
"104.243.18.115": "linux"
},
// 文件会在一定延迟后自动保存
"files.autoSave": "afterDelay",
// 指定默认的json格式程序
"[json]": {
"editor.defaultFormatter": "vscode.json-language-features"
},
// 用于控制 JSON 文件在编辑器中的自动刷新行为。
"JSON-zain.json.autorefresh": true,
// 用于控制删除文件时是否显示确认对话框
"explorer.confirmDelete": false,
// 关闭辅助功能
"editor.accessibilitySupport": "off",
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment