Date: 2024-11-21 10:02:48
Score: 0.5
Natty:
To add just the button for build configuration (Debug/Release) to the status bar

- Click the CMake icon on the left panel. If the icon is not there, open VSCode in a folder with a
CMakeLists.txt
and it should appear.

- Hover over PROJECT STATUS on the left side bar and click the Open visibility Settings icon. This will open a JSON settings file for the CMake extension.

- The "cmake.options.advanced" option should have three entries: build, launch and debug. Add the fourth entry named variant following the same pattern.

- Save the file (Ctrl+s). The button should appear on the status bar.

- You can change the "inheritDefault" property to "compact" or "icon" to change the button style.
A complete guide to the CMake options visibility customization
Reasons:
- Probably link only (1):
- Long answer (-0.5):
- Has code block (-0.5):
- Low reputation (0.5):
Posted by: Adayah