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. PressCtrl+Shift+P(Windows/Linux) orCmd+Shift+P(Mac), typeReset 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 withCtrl+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 withCtrl+,(Windows/Linux) orCmd+,(Mac). Search fordebug.showRunAndDebugButtonsand ensure the checkbox is ticked. Also, search fordart.debuggerConfigurationsto 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\Cacheand%APPDATA%\Code\CachedDataand delete their contents - Mac: Go to
~/Library/Caches/Codeand~/Library/Application Support/Code/CachedDatato delete files - Linux: Delete contents from
~/.config/Code/Cacheand~/.config/Code/CachedData
Restart VS Code after this—corrupted cache files that might be causing the issue will be cleared.
- Windows: Navigate to
Start with the first two steps—most users find those fix the problem right away.
内容的提问来源于stack exchange,提问作者riciloma

