79210619

Date: 2024-11-21 10:02:48
Score: 0.5
Natty:
Report link

To add just the button for build configuration (Debug/Release) to the status bar

Step 1

  1. 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.

Step 2

  1. 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.

Step 3

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

Step 4

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

Step 5

  1. 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