如何将VS-Code选项卡设置从"将焦点&q;更改为"添加空格(&q;)? [英] How to Change VS-Code Tab setting from "Change Focus" to "Add Spaces"?

查看:13
本文介绍了如何将VS-Code选项卡设置从"将焦点&q;更改为"添加空格(&q;)?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在最新的VS-Code更新后,制表符功能更改为"焦点更改",而不是添加空格或标识。我尝试更改setting.json中的所有设置,但都不起作用。这真的很烦人,因为我已经习惯了。 如有任何帮助,我们将不胜感激。

{
"workbench.iconTheme": "material-icon-theme",
"editor.formatOnSave": true,
"prettier.singleQuote": true,
"workbench.startupEditor": "newUntitledFile",
"window.zoomLevel": 0,
"indenticator.hover.peekBack": 0,
"indenticator.hover.peekForward": 1,
"indenticator.inner.hover.peekBack": 0,
"indenticator.inner.hover.peekForward": 1,
"indenticator.inner.showHighlight": true,
"html.format.endWithNewline": true,
"javascript.implicitProjectConfig.experimentalDecorators": true,
"prettier.printWidth": 110,
"html.format.indentHandlebars": true,
"html.format.indentInnerHtml": true,
"liveServer.settings.AdvanceCustomBrowserCmdLine": "C:\Program Files\Firefox Developer Edition\firefox.exe",
"prettier.jsxBracketSameLine": true,
"prettier.trailingComma": "es5",
"prettier.useTabs": true,
"angular2-switcher.openSideBySide": true,
"editor.foldingStrategy": "indentation",
"editor.mouseWheelZoom": true,
"[html]": {
    "editor.defaultFormatter": "HookyQR.beautify"
},
"[less]": {
    "editor.defaultFormatter": "michelemelluso.code-beautifier"
},
"workbench.statusBar.visible": true,
"workbench.activityBar.visible": true,
"editor.renderControlCharacters": false,
"editor.showFoldingControls": "always",
"editor.smoothScrolling": true,
"breadcrumbs.enabled": false,
"terminal.integrated.rendererType": "dom",
"[javascript]": {
    "editor.defaultFormatter": "esbenp.prettier-vscode"
},
"[jsonc]": {
    "editor.defaultFormatter": "HookyQR.beautify"
},
"terminal.integrated.shell.windows": "C:\WINDOWS\System32\WindowsPowerShell\v1.0\powershell.exe"

}

这是我的设置文件。扩展设置与以前相同。

推荐答案

在云上备份我的VS-Code设置时(在C:Users[username]AppDataRoamingCodeUserkeybindings.json中),该选项卡被分配为-tab标签为move-focus。这并没有出现在VS-Code的用户界面设置上。 我不知道它来自哪里(在倒数第二次VS-代码更新之后):

 {
    "key": "tab",
    "command": "-tab",
    "when": "editorTextFocus && !editorReadonly && !editorTabMovesFocus"
}

我刚把它移走了。其功能与DEFAULT相同。

如果有人无缘无故地面临这个问题,请分享这一点作为答案。 谢谢。:)

这篇关于如何将VS-Code选项卡设置从"将焦点&q;更改为"添加空格(&q;)?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆