简体   繁体   English

Visual Studio Code 扩展设置

[英]Visual Studio Code extension settings

Got myself Visual Studio Code.得到了自己的 Visual Studio Code。 I've installed a Uncrustify extension to make my files be formatted when I edit them.我安装了一个Uncrustify扩展程序,以便在我编辑文件时对它们进行格式化。 I wanted to make it format my files on save, but I cannot open like Options menu for this extension or something like that.我想让它在保存时格式化我的文件,但我无法打开这个扩展程序的选项菜单或类似的东西。 The author gives this screenshot:作者给出了这个截图:

在此处输入图片说明

But I cannot reach that menu.但我无法访问该菜单。 When I click on this little gear circle near the extension under the Extensions tab, it just pops up a menu with: Disable (Workspace) , Disable (Always) , Uninstall .当我单击 Extensions 选项卡下扩展程序附近的这个小齿轮圈时,它会弹出一个菜单: Disable (Workspace)Disable (Always)Uninstall I can only edit 4 things, like my .cfg file path under Ctrl+Comma settings, but that's not what I am searching for, and it's not what is on this screen provided by author我只能编辑 4 项内容,例如Ctrl+Comma设置下的.cfg文件路径,但这不是我要搜索的内容,也不是作者提供的此屏幕上的内容

I guess I am not only asking about this particular extension, but generally for extension settings in this editor.我想我不仅询问这个特定的扩展,而且通常询问这个编辑器中的扩展设置。

Many ways mentioned here in an issue created available on VSCode repository: Allow to change settings from Extensions editor .很多方面提到这里在VSCode库中创建可用的问题:允许从扩展的编辑更改设置

On Windows, I could be able to change settings by going to:在 Windows 上,我可以通过以下方式更改设置:

File -> Preferences -> Settings -> Extensions.文件 -> 首选项 -> 设置 -> 扩展。

Dont know if you figured it out yet or not but maybe for someone who comes here to find an answer.不知道你是否已经想通了,但也许对于来这里寻找答案的人来说。

Step 1: Press ctrl + alt + p to open the command pallet.步骤 1:按ctrl + alt + p打开命令托盘。

Step 2: Search and execute this command Uncrustify: Open config file第 2 步:搜索并执行此命令Uncrustify: Open config file

If your config file has not been created, then before step 2 you must execute Uncrustify: Create default config file command.如果您的配置文件尚未创建,那么在第 2 步之前您必须执行Uncrustify: Create default config file命令。

Anyways, these instructions are present their in Details section of the extension.无论如何,这些说明都出现在扩展的Details部分。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM