vscode 开发工具指南之你所不知道的强悍功能

本文详细介绍了Visual Studio Code(VSCode)的各种强大功能,包括云备份配置、列编辑、递增插入、CSV和Markdown工具、命令区的实用技巧,以及前端开发中的Vetur插件和npm脚本管理。同时,还特别强调了针对后端开发的远程开发解决方案,帮助开发者提升开发效率。
摘要由CSDN通过智能技术生成

28565dd6822c4e97921f8de5cc794a8d.png

介绍Visual studio code的用法,结合实际开发需要,突出介绍一些强悍技能。无论是MacBook 还是Windows用户,它都能够实现快速文本编辑和markdown编写,让文本编辑进入高效模式。


1. 公共篇

1.1 云备份配置,一个json文件搞定

{
    "workbench.colorTheme": "Quiet Light",
    "workbench.startupEditor": "newUntitledFile",
    "workbench.iconTheme": "vscode-icons",
    "workbench.editor.enablePreview": false, //不使用预览打开

    // 避免每次窗口都被覆盖
    "window.openFoldersInNewWindow": "on",
    "window.restoreWindows": "none",
    "files.autoSave": "afterDelay",
    "files.autoSaveDelay": 60000,

    // "security.workspace.trust.untrustedFiles": "open",
    "security.workspace.trust.enabled": false,
  
  	//前端相关
    "[vue]": { //vuejs 格式化问题
        "editor.defaultFormatter": "octref.vetur"
    },
    "vetur.format.defaultFormatter.html": "js-beautify-html",
    "vetur.format.defaultFormatter.js": "prettier",
    "vetur.format.defaultFormatterOptions": {
        "js-beautify-html": {
            "wrap-attributes": "aligned-multiple",
            "wrap-attributes-indent-size": 4,
            "wrap-line-length": 150,
            "indent_size": 2, //两个空格位置
        },
        "prettier": {
            "tabWidth": 2, //两个空格位置
            "printWidth": 200,
            "singleQuote": false,
            "jsxBracketSameLine": true,
        },
    },
 
    "[javascript]": {    //JavaScript 格式化问题
        "editor.defaultFormatter": "HookyQR.beautify"
    },
    &#
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值