欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页

VSCode setting.json配置及解析

程序员文章站 2022-06-26 12:05:48
...
{
    "workbench.colorTheme": "βui - Tomorrow Dark",
    "editor.suggestSelection": "first",
    "vsintellicode.modify.editor.suggestSelection": "automaticallyOverrodeDefaultValue",
    "backgroundCover.randomImageFolder": "d:\\WorkSpace\\img",
    "editor.mouseWheelZoom": true,
    "backgroundCover.opacity": 0.8,
    "backgroundCover.imagePath": "d:\\WorkSpace\\img\\初音0.jpg",
    "git.path": "D:/software/Git/cmd/git.exe",
    "breadcrumbs.enabled": true,
    "git.enableSmartCommit": true,
    "files.exclude": {
        "**/.classpath": true,
        "**/.project": true,
        "**/.settings": true,
        "**/.factorypath": true
    },
    "workbench.iconTheme": "material-icon-theme",
    "cSpell.userWords": [
        "shany",
        "Shany",
		"Autowired"
    ],
    "editor.fontFamily": "Consolas, 'Source Code Pro', monospace",
    "editor.largeFileOptimizations": false,
    "code-runner.runInTerminal": true,
    "python.jediEnabled": true,
    "window.zoomLevel": 0,
    "sqltools.useNodeRuntime": true,
    "python.pythonPath": "D:\\software\\Python27\\python.exe",
    "terminal.integrated.fontFamily": "Consolas, 'Source Code Pro', monospace" ,
    "python.terminal.executeInFileDir": true,//修改为true之后,terminal中用到python.exe执行的地方都会调用python。pythonPath中的python.exe的文件
    "java.home": "C:\\Program Files\\Java\\jdk1.8.0_201",
    "java.autobuild.enabled": true,
    "workbench.editor.enablePreview": false,
}

在切换python版本后,需要设置python.pythonPath,来指定python.exe的位置,虽然在系统环境变量里修改,但是这里还是需要修改,同时也需要指定python.terminal.executeInFileDir,来设置terminal里面python.exe执行为true(此处默认为false)。

如果切换了jdk版本,这里需要配置java.home,不然可能会找到不到jdk。

cSpell.userWords是一个检测语法拼写的插件的用户自定义库,用于处理一些自定义词汇合法性。

workbench.editor.enablePreview是控制文件转跳时是否打开一个新的标签页,默认为true。

备注:以后可能会写一篇关于vscode插件推荐的文章。

相关标签: vscode java