美文网首页
vscode tab不能缩进

vscode tab不能缩进

作者: 菜鸟瞎编 | 来源:发表于2019-01-23 16:10 被阅读0次

正在使用的vscode tab忽然不能缩进,可能是因为自己安装了某些插件,导致tab键功能被修改。

在 File-->Preferences-->Key board shortcuts 页面中点击打开keybindings.json文件,注释掉下面关于Tab键的命令

// Place your key bindings in this file to overwrite the defaults
//[
//    {
//        "key": "tab",
//        "command": "-jumpToNextSnippetPlaceholder",
//        "when": "editorTextFocus && hasNextTabstop && inSnippetMode"
//    },
//     {
//         "key": "tab",
//         "command": "-editor.emmet.action.expandAbbreviation",
//         "when": "config.emmet.triggerExpansionOnTab && editorTextFocus && !editorReadonly && !editorTabMovesFocus"
//     },
//     {
//         "key": "tab",
//         "command": "-insertSnippet",
//         "when": "editorTextFocus && hasSnippetCompletions && !editorTabMovesFocus && !inSnippetMode"
//     },
//     {
//         "key": "tab",
//         "command": "-acceptSelectedSuggestion",
//         "when": "suggestWidgetVisible && textInputFocus"
//     },
//     {
//         "key": "tab",
//         "command": "-tab",
//         "when": "editorTextFocus && !editorReadonly && !editorTabMovesFocus"
//     }
// ]

同时在 File-->Preferences-->settings 中取消勾选这一项


image.png

相关文章

  • vscode tab不能缩进

    正在使用的vscode tab忽然不能缩进,可能是因为自己安装了某些插件,导致tab键功能被修改。 在 File-...

  • space indentation expected

    使用VSCode,把项目默认的2格缩进改成了Tab 4格缩进,报警告“space indentation expe...

  • 2020-05-22 vscode vue项目配置

    2020 05 22 vscode更新(V1.45.1) { //设置按tab有2个空格的缩进 "editor...

  • 设置 VSCode 缩进的空格数

    偶然间打开一个以前写的 markdown 文件,在 vscode 中编辑,发现按 tab 键缩进(indent)都...

  • pycharm基本操作

    pycharm常用快捷键 缩进:Tab 反缩进:Shift + Tab=================== 注释...

  • IDEA 中的 JAVA 快捷键

    sout 回车:System.out.println() Tab :代码缩进 Shift + Tab :代码不缩进...

  • VScode 配置GO 解决空格自动转成tab问题

    在 vscode 中把缩进设置为空格 但在 go 文件保存或格式化时会自动将空格换成 tab 很是令人抓狂。 解决...

  • PEP8 python 编码规范

    代码编排 缩进。4个空格的缩进(编辑器都可以完成此功能),不使用Tab,更不能混合使用Tab和空格。 每行最大长度...

  • Python语法元素分析

    1.用 缩进 来标识框架的格式 缩进快捷键Tab 反缩进快捷键 Shift + Tab 用Tab键来体现if el...

  • Pycharm快捷键梳理

    1、快速缩进(Mac) 正向缩进:选中代码块 + Tab键 反向缩进: 选中代码块 + ⇧ +Tab键位 2、

网友评论

      本文标题:vscode tab不能缩进

      本文链接:https://www.haomeiwen.com/subject/olfsjqtx.html