[英]How to customize the touch bar in visual studio code?
Looking in the conventional place: View -> Customize Touch Bar... The option is not present.在常规位置查看:查看 -> 自定义触控栏...该选项不存在。 Is this option not currently available?这个选项目前不可用吗? I'd like to disable most of the options it provides is where I am going.我想禁用它提供的大多数选项,这是我要去的地方。
I continually accidentally press the Forward and Back buttons while editing and it has become annoying very quickly.我在编辑时不断不小心按下前进和后退按钮,这很快变得很烦人。
I figured I would ask while I attempt update my finger muscle memory.我想我会在尝试更新手指肌肉记忆时询问。
I kept running into this issue as well and it was quite frustrating.我也一直遇到这个问题,这很令人沮丧。 I appreciate the ability to customize via an extension, but I really like the drag-and-drop mechanism provided universally (or nearly) that is missing here.我很欣赏通过扩展进行自定义的能力,但我真的很喜欢这里缺少的普遍(或几乎)提供的拖放机制。
As a result, I ended up disabling the touch bar within VS Code by going to:结果,我最终通过以下方式禁用了 VS Code 中的触摸栏:
Code -> Preferences -> Settings
and then:接着:
Application -> Keyboard
There you will find the checkbox for enabling/disabling the touch bar on macOS.在那里你会找到在 macOS 上启用/禁用触摸栏的复选框。 Hope this helps someone else discover it quickly!希望这有助于其他人快速发现它!
You could check out the Nasc VSCode Touchbar extension你可以查看Nasc VSCode Touchbar扩展
It allows you to choose from a bunch of preset commands by updating your settings.json
to toggle buttons on/off它允许您通过更新settings.json
以打开/关闭按钮来从一堆预设命令中进行选择
There are some other extensions you can try out that have come out since time of this post's publishing: https://marketplace.visualstudio.com/search?term=touchbar&target=VSCode&category=All%20categories&sortBy=Relevance自这篇文章发布以来,您还可以尝试其他一些扩展: https : //marketplace.visualstudio.com/search?term=touchbar&target=VSCode&category=All%20categories&sortBy=Relevance
eg例如
{
nasc-touchbar.goToDefinition: true,
nasc-touchbar.goToNext: false,
// ..etc
}
And if you're game you canwrite your own .如果你是游戏,你可以编写自己的.
I just ended up making it always show function keys:我最终使它始终显示功能键:
https://support.apple.com/en-us/HT207240 https://support.apple.com/en-us/HT207240
Effectively:有效地:
System Preferences -> Keyboard -> Shortcuts Tab系统偏好设置 -> 键盘 -> 快捷方式选项卡
At the bottom of the left pane, you will see Function Keys
select that.在左窗格的底部,您将看到Function Keys
选择它。 On the right hand side you can +/-
apps you want to always show the function keys.在右侧,您可以+/-
您希望始终显示功能键的应用程序。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.