VisualStudio与vscode编译器简单自定义配置

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

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

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

{
    "git.enableSmartCommit": true,
    "git.autofetch": true,
    "git.confirmSync": false,
    "explorer.confirmDelete": false,
    "powermode.enabled": true,
    "powermode.presets": "flames",
    "powermode.shake.enabled": false,
    "powermode.combo.counterEnabled": "hide",
    "powermode.combo.timerEnabled": "hide",
    "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",
    "[html]": {
        "editor.defaultFormatter": "vscode.typescript-language-features"
    },
    "[typescript]": {
        "editor.defaultFormatter": "vscode.typescript-language-features"
    },
    "workbench.editorAssociations": {
        "*.ipynb": "jupyter-notebook"
    },
    "python.languageServer": "Pylance",
    "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,
    "javascript.updateImportsOnFileMove.enabled": "always",
    "security.workspace.trust.untrustedFiles": "open",
    "workbench.editor.untitled.hint": "hidden",
    "editor.codeActionsOnSave": {},
}

vscode火焰插件:power mode。配置在上面的json里;

  • 1
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
Visual Studio Code (VSCode) 是一款由微软开发的开源、轻量级的源代码编辑器,支持多种编程语言,并可以通过安装扩展插件来增强功能。在VSCode中实现特定功能,比如类似于C++或Python的开发,你可以按照以下步骤操作: 1. **设置和配置**: - 安装C/C++或你所需语言的插件:如"Microsoft C/C++ Extension Pack"(C++支持)或"Python"插件。 - 配置编译器路径(如有必要),通常在`settings.json`文件中。 2. **创建项目**: - 创建一个新的文件夹,作为你的项目根目录。 - 使用VSCode的`File` > `New Folder`创建子文件夹,分别存放源代码、构建目录等。 3. **编写代码**: - 使用VSCode的文本编辑功能,创建`.cpp`或`.c`(C)或`.py`(Python)等文件,开始编写你的C程序。 4. **构建和调试**: - 使用内置的命令行工具(如`tasks.json`配置构建任务)或扩展(如"CodeLLDB"或"C/C++ Debug")进行编译和运行。 - 如果你需要断点调试,可以使用调试工具进行设置并启动调试。 5. **代码提示和智能感知**: - VSCode提供了强大的代码补全和文档注释支持,许多插件能提供自动完成、类型检查等功能。 6. **版本控制**: - 利用Git进行版本管理,可以在VSCode的Git扩展中进行分支管理、提交和拉取。 相关问题-- 1. 如何在VSCode中安装特定编程语言的插件? 2. 怎样配置VSCode以使用自定义编译器? 3. 如何利用VSCode进行代码调试?

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值