zoukankan      html  css  js  c++  java
  • VSCode插件及用户设置

    第一部分:插件

    VSCode内置"emmet"插件,"convert to utf-8"等插件效果!十分强大!代码提示功能特别强悍!

    VSCode官网插件地址:点击此处!

    插件总览:插件越来越多,就不一一详解了!

    插件部分详解:

    1.vscode-icons:文件都能以图标修饰,十分清晰明了,易于查看!

    效果:

    2.Open Html in Default Browser:html文件中,右键有“在默认浏览器中打开”的选项!

    --中国人写的--

    3.Paste and Indent:粘贴并缩进(目前版本只有粘贴,没有粘贴缩进功能!);链接

    设置:“键盘快捷方式”-》keybindings.json:

    复制代码
    [
        {
            "key": "ctrl+v",
            "command": "pasteAndIndent.action",
            "when": "editorTextFocus && !editorReadonly"
        },
        {
            "key": "ctrl+v",
            "command": "editor.action.clipboardPasteAction",
            "when": "!editorTextFocus"
        },
        {
            "key": "ctrl+shift+v",
            "command": "editor.action.clipboardPasteAction",
            "when": "editorTextFocus && !editorReadonly"
        }
    ]
    复制代码

    mac系统应该是:"ctrl"相应的改为"cmd"!

    4.Path Intellisense:路径补全功能!

    详情查看链接 

    5.JQuery Code Snippets:jQuery代码片段

    输入jq就可以看到很多片段了,不过感觉有了jQuery代码提示(参见我的另一篇博客:http://www.cnblogs.com/why-not-try/p/8044766.html),这个显得鸡肋!

    第二部分:用户设置(settings.json

    复制代码
     1 {
     2     "editor.fontSize": 19, 
     3     "editor.fontFamily": "Consolas",
     4     //换行
     5     "editor.wordWrap": "on",  
     6     // 配置php可执行文件:   
     7     "php.validate.executablePath": "D:/Xampp/php/php.exe",
     8     "workbench.iconTheme": "vscode-icons",
     9     "git.path":"d:/git/Git/mingw64/libexec/git-core/git.exe" ,
    10     //关闭自动更新扩展
    11     "extensions.autoUpdate": false,
    12     //右键格式化文件
    13     "prettier.singleQuote": true,
    14     "prettier.semi":false,
    15     "vetur.format.defaultFormatter.html": "js-beautify-html",
    16     //配置eslint
    17     "eslint.autoFixOnSave": true,
    18     "files.autoSave":"off",
    19     "eslint.validate": [
    20        "javascript",
    21        "javascriptreact",
    22        "html",
    23        { "language": "vue", "autoFix": true }
    24      ],
    25      "eslint.options": {
    26         "plugins": ["html"]
    27      },
    28      //为了符合eslint的两个空格间隔原则
    29      "editor.tabSize": 2
    30  
    31 }
    复制代码
  • 相关阅读:
    easyui combobox 获取焦点
    easyui combobox keyhandler使用
    easyui combobox 取值
    Tomcat启动超时问题Server Tomcat v7.0 Server at localhost was unable to start within 45 seconds
    spring定时器中如何获取servletcontext
    不用asp.net MVC,用WebForm照样能够实现MVC
    打印从1到最大的n位数
    [NOIP复习]第三章:动态规划
    Java并发与同步
    Bootstrap的js插件之按钮(button)
  • 原文地址:https://www.cnblogs.com/yuer20180726/p/11107218.html
Copyright © 2011-2022 走看看