Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/visual-studio-code/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Visual studio code VScode旋转多个格式化程序_Visual Studio Code_Vscode Settings - Fatal编程技术网

Visual studio code VScode旋转多个格式化程序

Visual studio code VScode旋转多个格式化程序,visual-studio-code,vscode-settings,Visual Studio Code,Vscode Settings,我使用LaurentTreguier的uncrustify扩展,它按预期工作。 但现在当我按下Ctrl+Shift+i时,vscode开始旋转格式化程序 意味着一次执行uncrustify,下一次执行其他格式化程序,我不知道。我还安装了MS的C/C++扩展 并且仅为工作区配置了uncrustify 如何将命令设置为仅使用uncrustify?或者如何查看使用了哪个其他格式化程序。除了查看去bug终端的uncrustify以确定执行了哪个代码格式化程序之外,还有其他方法吗?解决方案是禁用C/C++

我使用LaurentTreguier的uncrustify扩展,它按预期工作。 但现在当我按下Ctrl+Shift+i时,vscode开始旋转格式化程序

意味着一次执行uncrustify,下一次执行其他格式化程序,我不知道。我还安装了MS的C/C++扩展

并且仅为工作区配置了uncrustify


如何将命令设置为仅使用uncrustify?或者如何查看使用了哪个其他格式化程序。除了查看去bug终端的uncrustify以确定执行了哪个代码格式化程序之外,还有其他方法吗?

解决方案是禁用C/C++扩展附带的格式化程序,因此在本例中,cpp\u fromatter

按Ctrl+Shift+p并键入
设置
选择
首选项:打开用户设置
并添加此行

/* Disable cpp code formatter in favour of uncrustify */
"C_Cpp.formatting": "Disabled",
可能重复的