编译器简单自定义配置

visual studio 保存自动格式化 插件: format document on Save
在这里插入图片描述

vscode 自定义配置setting.json; 文件->首选项->设置->
在这里插入图片描述

其他可选设置:
在这里插入图片描述
在这里插入图片描述

{
    
    
    "terminal.integrated.shell.windows": "C:\\Windows\\System32\\cmd.exe",
    "python.defaultInterpreterPath": "C:\\Users\\Admin\\AppData\\Local\\Programs\\Python\\Python38\\python.exe",
    "kite.showWelcomeNotificationOnStartup": false,
    "[javascript]": {
    
    
        "editor.defaultFormatter": "vscode.typescript-language-features"
    },
    "editor.suggestSelection": "first",
    "vsintellicode.modify.editor.suggestSelection": "automaticallyOverrodeDefaultValue",
    "explorer.confirmDelete": false,
    "[html]": {
    
    
        "editor.defaultFormatter": "esbenp.prettier-vscode"
    },
    "[typescript]": {
    
    
        "editor.defaultFormatter": "vscode.typescript-language-features"
    },
    "workbench.editorAssociations": {
    
    
        "*.ipynb": "jupyter.notebook.ipynb"
    },
    "python.languageServer": "Pylance",
    "workbench.colorTheme": "Atom One Dark",
    "explorer.confirmDragAndDrop": false,
    "diffEditor.ignoreTrimWhitespace": false,
    "[json]": {
    
    
        "editor.defaultFormatter": "vscode.json-language-features"
    },
    "[jsonc]": {
    
    
        "editor.defaultFormatter": "vscode.json-language-features"
    },
    "vetur.format.defaultFormatter.html": "js-beautify-html",
    "vetur.format.defaultFormatter.js": "vscode-typescript",
    "vetur.format.defaultFormatterOptions": {
    
    
        "js-beautify-html": {
    
    
            "wrap_attributes": "auto"
        },
        "prettyhtml": {
    
    
            "printWidth": 100,
            "singleQuote": false,
            "wrapAttributes": false,
            "sortAttributes": false
        }
    },
    "editor.formatOnSave": true,
    "git.enableSmartCommit": true,
    "javascript.updateImportsOnFileMove.enabled": "always",
    "security.workspace.trust.untrustedFiles": "open",
    "workbench.editor.untitled.hint": "hidden",
    "editor.codeActionsOnSave": null,
}

猜你喜欢

转载自blog.csdn.net/kuilaurence/article/details/119958680