{
    "version": "2.0.0",
    "tasks": [{
        "taskName": "test build",
        "type": "shell",
        "command": "${workspaceRoot}/build.bat",
        "group": {
            "kind": "build",
            "isDefault": true
        }
    }]
}
{
    "version": "0.1.0",
    "configurations": [
      	// 这份配置是针对服务
        {            "name": "Launch localhost",
            "type": "chrome",
            "request": "launch",
          	//启动页面
            "url": "http://localhost:8080/index",
          	//文件映射根目录
            "webRoot": "${workspaceFolder}/wwwroot"
        },      	// 这份配置是针对本地文件的
        {            "name": "Launch index.html",
            "type": "chrome",
            "request": "launch",
            "file": "${workspaceFolder}/index.html"
        },    ]}
<SCRIPT LANGUAGE="javascript">   
<!--  
window.open ('page.html')  
--> 
</SCRIPT>
"editor.quickSuggestions": {
        "other": true,
        "comments": false,
        "strings": false
    }
Component component; 
component.addMouseListener( 
  new <caret is here>  
);
npm install typescript --save-dev
"contributes": {
   // 图标栏
    "viewsContainers": {
      "activitybar": [
        {
          "id": "snippet-viwer", // id对应视图id
          "title": "代码段查看器",
          "icon": "img/left_icon.svg"
        }
      ]
    },
   // 视图栏
    "views": {
      "snippet-viwer": [
        {
          "id": "plugin-view",
          "name": "扩展目录"
        }
      ]
    }
  },
dependencies {
    implementation 'com.android.support:appcompat-v7:28.0.0'
    // 其他依赖...
}
// 输入类名时的代码提示
Button button = new Button(this);
// 添加以下代码到项目的 build.gradle 文件中
dependencies {
    // 添加相关依赖库
    implementation 'com.android.support:appcompat-v7:28.0.0'
    implementation 'com.android.support:recyclerview-v7:28.0.0'
}
"less.compile": {
        "out": "../css/" //设置导出css路径
    }
Settings -> Editor -> General -> Code Completion
"editor.codeActionsOnSave": {
    "source.fixAll": true
},
"eslint.validate": [
    "javascript",
    "javascriptreact",
    "vue",
    "typescript",
    "typescriptreact"
],
复制代码
{
    // vscode默认启用了根据文件类型自动设置tabsize的选项
   "editor.detectIndentation": false,
   // 重新设定tabsize
   "editor.tabSize": 2,
   // #每次保存的时候自动格式化 
   "editor.formatOnSave": true,
   // #每次保存的时候将代码按eslint格式进行修复
   "eslint.autoFixOnSave": true,
   // 添加 vue 支持
   "eslint.validate": [
       "javascript",
       "javascriptreact",
       {
           "language": "vue",
           "autoFix": true
       }
   ],
   //  #让prettier使用eslint的代码格式进行校验 
   "prettier.eslintIntegration": true,
   //  #去掉代码结尾的分号 
   "prettier.semi": false,
   //  #使用带引号替代双引号 
   "prettier.singleQuote": true,
   //  #让函数(名)和后面的括号之间加个空格
   "javascript.format.insertSpaceBeforeFunctionParenthesis": true,
   // #这个按用户自身习惯选择 
   "vetur.format.defaultFormatter.html": "js-beautify-html",
   // #让vue中的js按编辑器自带的ts格式进行格式化 
   "vetur.format.defaultFormatter.js": "vscode-typescript",
   "vetur.format.defaultFormatterOptions": {
       "js-beautify-html": {
           "wrap_attributes": "force-aligned"
           // #vue组件中html代码格式化样式
       }
   },
}
composer require barryvdh/laravel-ide-helper  
# 如果只想在开发环境安装请加上 --dev
composer require barryvdh/laravel-ide-helper --dev
"Print to console": {
        "prefix": ["console.log", "console", "log"],
        "body": [
            "console.log($1);",
            "$2"
        ],
        "description": "Log output to console"
    },
1 <snippet>
2     <content><![CDATA[ 你需要插入的代码片段${1:name} ]]></content>
3     <!-- 可选:快捷键,利用Tab自动补全代码的功能 -->
4     <tabTrigger>xyzzy</tabTrigger>
5     <!-- 可选:使用范围,不填写代表对所有文件有效。附:source.css和test.html分别对应不同文件。 -->
6     <scope>source.python</scope>
7     <!-- 可选:在snippet菜单中的显示说明(支持中文)。如果不定义,菜单则显示当前文件的文件名。 -->
8     <description>My Fancy Snippet</description>
9 </snippet>
  • 1
  • 2
  • 3
  • 4
  • 5