You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

VS Code中运行与调试启动配置按钮消失问题

Fixing the Missing Dart Launch Configuration Button in VS Code

No need to reinstall VS Code—let's get that button back with these straightforward, tried-and-tested steps:

  • Reset your VS Code view layout
    Sometimes a messed-up panel layout hides elements you need. Press Ctrl+Shift+P (Windows/Linux) or Cmd+Shift+P (Mac), type Reset View Layout, and hit enter. This reverts all panels to their default positions, which usually brings the launch configuration button back into view.

  • Check the Debug panel's visibility settings
    Open the Debug panel with Ctrl+Shift+D. Look for the three-dot menu icon in the top-right corner of the panel—click it and make sure "Show Run Configurations" is toggled on. If it was accidentally turned off, enabling this will bring back the button and configuration dropdown immediately.

  • Verify the Dart plugin status
    Head to the Extensions panel (Ctrl+Shift+X), search for the Dart extension. Make sure it's enabled (if not, click the "Enable" button). If it's already active, right-click the extension and select "Reload Extension"—sometimes a quick reload fixes odd UI glitches.

  • Check relevant VS Code settings
    Open Settings with Ctrl+, (Windows/Linux) or Cmd+, (Mac). Search for debug.showRunAndDebugButtons and ensure the checkbox is ticked. Also, search for dart.debuggerConfigurations to make sure there are no invalid entries that might be causing the button to hide.

  • Clear VS Code's cache (lightweight fix)
    Close VS Code entirely, then delete the cache folders (this won't touch your settings or plugins):

    • Windows: Navigate to %APPDATA%\Code\Cache and %APPDATA%\Code\CachedData and delete their contents
    • Mac: Go to ~/Library/Caches/Code and ~/Library/Application Support/Code/CachedData to delete files
    • Linux: Delete contents from ~/.config/Code/Cache and ~/.config/Code/CachedData
      Restart VS Code after this—corrupted cache files that might be causing the issue will be cleared.

Start with the first two steps—most users find those fix the problem right away.

内容的提问来源于stack exchange,提问作者riciloma

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.04.27 12:57:32