All Projects → whorusq → vscode-settings

whorusq / vscode-settings

Licence: other
vscode(Visual Studio Code) 相关设置、使用技巧等整理

Projects that are alternatives of or similar to vscode-settings

vscode-java-saber
⚔️ To make the vscode work as Eclipse or IDEA when you are coding in java.
Stars: ✭ 28 (+75%)
Mutual labels:  vscode-extension, vscode-plugin
Smile-Theme
完整的 VSCode 主题,包括图标与界面配色
Stars: ✭ 20 (+25%)
Mutual labels:  vscode-extension, vscode-icons
vscode-react-component-generator
A VSCode extension that generates a new React component with its files automatically in VSCode.
Stars: ✭ 18 (+12.5%)
Mutual labels:  vscode-extension, vscode-plugin
vscode-console-helper
vscode console helper — 旨在帮助开发人员编码时更快的输入/移除 log,搭配上醒目的主题,提高开发效率。
Stars: ✭ 36 (+125%)
Mutual labels:  vscode-extension, vscode-plugin
vs-code-bpmn-io
Edit BPMN 2.0 files. Based on bpmn.io tools.
Stars: ✭ 87 (+443.75%)
Mutual labels:  vscode-extension, vscode-plugin
sap-hana-driver-for-sqltools
A Visual Studio Code extension which extends the SQLTools extension, with a driver to work with the SAP HANA Database. It supports tables and views, as well as running queries on an SAP HANA Database.
Stars: ✭ 17 (+6.25%)
Mutual labels:  vscode-extension, vscode-plugin
angular-karma test-explorer
vscode extension for easy angular testing and debugging
Stars: ✭ 67 (+318.75%)
Mutual labels:  vscode-extension, vscode-plugin
git-emoji-zh
VS code 插件,在 VScode 中提交 git 的时候添加 emoji 表情😝
Stars: ✭ 39 (+143.75%)
Mutual labels:  vscode-extension, vscode-plugin
vscode-material-product-icons
Product Icon Theme with Material Icons for VS Code
Stars: ✭ 19 (+18.75%)
Mutual labels:  vscode-extension, vscode-icons
vscode-px-to-rem
Extension that allows you to convert from px to rem, and vice versa
Stars: ✭ 36 (+125%)
Mutual labels:  vscode-extension, vscode-plugin
quit-control-vscode
➡️ Stop mistyping keyboard shortcuts and quitting VSCode unintentionally
Stars: ✭ 37 (+131.25%)
Mutual labels:  vscode-extension, vscode-plugin
project-japanese-proofreading
テキストファイルやMarkdownファイルの日本語の文章をチェックするVS Codeの拡張機能
Stars: ✭ 81 (+406.25%)
Mutual labels:  vscode-extension, vscode-plugin
vscode-appsync-resolver-autocomplete
Adds autocomplete functionality to vscode when editing AWS AppSync resolver vtl files.
Stars: ✭ 21 (+31.25%)
Mutual labels:  vscode-extension, vscode-plugin
z-reader
📘 [vscode插件] 小说阅读器,支持在线搜索和本地阅读,支持txt和epub格式
Stars: ✭ 205 (+1181.25%)
Mutual labels:  vscode-extension, vscode-plugin
vscode-stylelint-plus
A Visual Studio Code extension to lint CSS/SCSS/Less with stylelint, support auto fix on save.
Stars: ✭ 32 (+100%)
Mutual labels:  vscode-extension, vscode-plugin
mirage
A Mirage blue theme with pastel tones for Visual Studio Code
Stars: ✭ 39 (+143.75%)
Mutual labels:  vscode-extension, vscode-plugin
vscode-markdown-link-suggestions
Suggests workspace files and MarkDown file headers in MarkDown links
Stars: ✭ 15 (-6.25%)
Mutual labels:  vscode-extension, vscode-plugin
Vscode Icons
Icons for Visual Studio Code
Stars: ✭ 3,160 (+19650%)
Mutual labels:  vscode-extension, vscode-icons
Netlify
A VS Code extension that displays your Netlify build statuses and more!
Stars: ✭ 23 (+43.75%)
Mutual labels:  vscode-extension
vscode-abaplint
Visual Studio Code abaplint extension
Stars: ✭ 18 (+12.5%)
Mutual labels:  vscode-extension

最新版本:v1.51

官网地址:https://code.visualstudio.com

效果预览:

Visual Studio Code

⚠️ 注意:此预览图中的最终效果,基于图标主题 「Material Icon Theme」 和 颜色主题 「One Monokai Theme」 进行定制,详见下文中的自定义配置部分。

索引

  1. 推荐自定义配置
  2. 替代图标
  3. 快捷键
  4. 第三方插件
  5. 其它

1. 推荐自定义配置

点击这里

2. 替代图标

点击这里

3. 快捷键

点击这里

4. 第三方插件

4.1. 如何安装插件?

  1. 搜索扩展
    • 方式一:⌘P 输入 ext install [紧跟插件名或关键字] 然后回车;
    • 方式二:左侧边栏单击扩展图标或使用快捷键 ⇧⌘X,然后在搜索框输入要安装的插件名称;
  2. 根据搜索到的插件列表,查找需要的插件,点击 Install
  3. 插件安装好之后,点击 Reload 重新加载,或完全关闭 vscode 重新打开。

4.2. 推荐插件及配置

以下是一些推荐的插件及基本配置,详细说明及配置项参见各插件对应的文档。

插件名称 说明 备注
Settings Sync 同步设置、主题、文件图标、快捷键等(最新版本已集成,此插件不再需要)
Paste and Indent 带格式的粘贴
Alignment 代码对齐格式化,同 sublime text 3
Docker Docker 相关文件高亮、语法检查、一些命令行工具等
Git History Git 功能增强,查看日志、文件历史、提交比较等
PHP IntelliSense PHP 语法检查、提示加强等
PHP Debug PHP 断点调试
PHP DocBlocker PHP 快速注释工具
Bracket Pair Colorizer 括号高亮
Insert Date String 插入日期时间
ESLint JS 语法检查
JavaScript (ES6) snippets ES6 代码片段快捷提示
Log File Highlighter 日志文件高亮
Output Colorizer 在 Output 面板高亮日志输出
Markdown Preview Github Styles Markdown 预览窗口使用 Github 的样式
SVN 追加 SVN 的一些操作
...

下面是一些插件的推荐设置:

Paste and Indent
  1. 修改文件 keybindings.json,追加以下设置(ctrl+v 带格式;ctrl+shift+v 原样)

    [
        {
            "key": "cmd+v",
            "command": "pasteAndIndent.action",
            "when": "editorTextFocus && !editorReadonly"
        },
        {
            "key": "cmd+v",
            "command": "editor.action.clipboardPasteAction",
            "when": "!editorTextFocus"
        },
        {
            "key": "cmd+shift+v",
            "command": "editor.action.clipboardPasteAction",
            "when": "editorTextFocus && !editorReadonly"
        }
    ]
  2. 修改用户配置 Preferences > Settings,追加如下设置

    "pasteAndIndent.selectAfter": true,
PHP IntelliSense
"php.executablePath": "/usr/bin/php",
"php.validate.run": "onType",
"php.suggest.basic": false,
Bracket Pair Colorizer
"editor.matchBrackets": false,
"bracketPairColorizer.highlightActiveScope": true,
"bracketPairColorizer.showBracketsInGutter": true,
"bracketPairColorizer.showVerticalScopeLine": false,
"bracketPairColorizer.activeScopeCSS": [
    "borderStyle : none",
    "backgroundColor : {color}; opacity: 0.5"
],
Insert Date String
// 插入日期时间 command + shift + i
//  DDDD, MMMM D, YYYY A HH:mm:ss -> Tuesday, April 3, 2018 PM 02:35:08
"insertDateString.format": "YYYY/MM/DD hh:mm:ss"
ESLint
  1. 安装插件、重启;

  2. 输入命令 npm install -g eslint 全局安装 eslint

  3. 安装对应语言的规则,如 react 的

    npm install --save-dev eslint-config-alloy eslint-plugin-react babel-eslint
    

    其中:

    • eslint-config-alloy AlloyTeam 出的通用基础语法
    • eslint-plugin-react react 相关语法
    • babel-eslint es2015 语法
  4. 在项目更目录下添加 .eslintrc.js 文件,并追加以下内容:

    module.exports = {
        extends: [
            'eslint-config-alloy/react',
        ],
        globals: {
            // 这里填入你的项目需要的全局变量
            // 这里值为 false 表示这个全局变量不允许被重新赋值,比如:
            //
            // React: false,
            // ReactDOM: false
        },
        rules: {
            // 这里填入你的项目需要的个性化配置,比如:
            //
            // // @fixable 一个缩进必须用两个空格替代
            // 'indent': [
            //     'error',
            //     2,
            //     {
            //         SwitchCase: 1,
            //         flatTernaryExpressions: true
            //     }
            // ],
            // // @fixable jsx 的 children 缩进必须为两个空格
            // 'react/jsx-indent': [
            //     'error',
            //     2
            // ],
            // // @fixable jsx 的 props 缩进必须为两个空格
            // 'react/jsx-indent-props': [
            //     'error',
            //     2
            // ]
        }
    };
  5. 添加用户设置:

    "javascript.validate.enable" : false,
    "eslint.autoFixOnSave": true, // 保存时修复
    // "eslint.trace.server": "messages",// 输出 ESLint 执行时的 log,ESLint 不生效的时候可以启用看看
    "eslint.validate": [ // 配置检查的文件类型
        "javascript",
        "javascriptreact",
        "html"
    ],

说明:以上配置参照自 AlloyTeam ESLint 配置指南,更多内容请查看原文。

5. 其它

暂无

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].