Reputation: 156
I use Visual Studio Code and the CMake extension (twxs.cmake). The extension integrates CMake to vscode. There is a button which allows us to run a target in terminal window. It looks like a play button. . My question is, how can I add a keyboard shortcut for this button? I cannot find the action name so I cannot link it. I wish to use keyboard shortcut instead of clicking that button every time.
I tried googling the action name of this button so I could bind it with any keyboard shortcut, but I couldn't find anything.
Any help will be appreciated. Thank you in advance!
Upvotes: 5
Views: 1479
Reputation: 2557
For those who wish to modify the keybinding:
In vscode 1.89.1 using CMake Tools 1.18.41 the command is called:
CMake: Run Without Debugging
not
CMake: Execute
as stated in the other answer.
Upvotes: 1
Reputation: 427
Shift+F5 appears to do the same thing as clicking that button.
I found the following here:
Running Targets Without a Debugger
Sometimes one will want to just run a target and see its output. This can be done with the CMake: Execute the current target without a debugger command, or the associated keybinding (the default is Shift+F5).
The output of the target will be shown in an integrated terminal.
Upvotes: 6