如何禁用“ Run | Debug”在vscode行? [英] How to disable "Run|Debug" line in vscode?
问题描述
我目前正在将Flutter与Dart结合使用。如何永久禁用此烦人的运行|调试功能,
该运行|调试
并非内置于vscode中。它必须由您的扩展之一提供。这些似乎是罪魁祸首:
Dart:显示主代码镜头
//在编辑器中显示CodeLens操作,以快速运行/调试具有主要功能的脚本。
Dart:显示测试代码镜头
//是否在编辑器中显示CodeLens操作以进行快速运行/调试测试。
如果人们因为在package.json中有 Debug
或 Run
而来到这里,那是一个独立的过程问题和答案,请参见 https://stackoverflow.com/questions/62358131/how-to-disable-debug-from-showing-in-package-json/62368407?r=SearchResults&s=1|57.9327#62368407
I am currently using Flutter with Dart. How do I permanently disable this annoying "Run|Debug" line in vscode?
That Run | Debug
is not built-in to vscode. It must be contributed by one of your extensions. These seem like likely culprits:
Dart: Show Main Code Lens
// Whether to show CodeLens actions in the editor for quick running/debugging scripts with main functions.
Dart: Show Test Code Lens
// Whether to show CodeLens actions in the editor for quick running/debugging tests.
In case people get here because there is a Debug
or Run
in their package.json, that is a separate issue and answer, see https://stackoverflow.com/questions/62358131/how-to-disable-debug-from-showing-in-package-json/62368407?r=SearchResults&s=1|57.9327#62368407
这篇关于如何禁用“ Run | Debug”在vscode行?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!