Comments (5)
Thanks for the feedback.
The CMake: Build Target
command is named cmake.buildWithTarget
, thus the following keybindings.json
entry should bind that key:
{
"key": "shift+f7",
"command": "cmake.buildWithTarget"
}
Of course you can use whatever key combination you like.
At the moment, the default build command always builds the all
target, but I'm planning on adding a way to change the target that will be invoked with the build command, whether that be an entry in settings.json
or some per-session variable.
Since install
is a common target to use, I may just add another command that invokes the install target.
I'll eventually update the README.md
with more details about what the extension can do.
As a side note, all commands available for binding (including the cmake.*
ones) are listed in the Default Keyboard Shortcuts view as a lengthy comment toward the bottom of the file.
from vscode-cmake-tools.
Brilliant, thanks for the speedy reply. I hadn't noticed the cmake commands were at the bottom of keybindings.json file.
One more thing - is there a way to automatically clear the output panel before building? I can't see any keybinding that sounds likely. The only way seems to be to actually click the 'Clear Output' button.
from vscode-cmake-tools.
At the moment, no. But I am planning on adding a "Clear output before build" setting that can be enabled.
from vscode-cmake-tools.
Great, I'm looking forward to it. I'll close this Issue now - do you want another one titled "Clear output before build" that can be marked as an Enhancement request?
from vscode-cmake-tools.
Sure, that would be helpful. Thanks!
from vscode-cmake-tools.
Related Issues (20)
- No installed `lldb` debugger is automatically discovered on newer macOS versions HOT 2
- Add `onSelectedConfigurationChanged` event to the API
- Compile active file does not work HOT 6
- CMake Quick Start command asks user to browse a CMakeLists.txt HOT 3
- ${workspaceFolder} is not resolved in cmake.debugConfig HOT 9
- Multiple project roots not configured when one root is a subdirectory of the other HOT 4
- Not Displaying CMake Additional Kits HOT 1
- C++ Intellisense broken in some files, but working in other files HOT 10
- cmake kits do not accept shell scripts HOT 6
- CMakePresets.json misbehaves, always wants to build a debug build HOT 3
- Add Project Outline Filtering + Searching
- cmakeuserpresets.json not read by vscode-cmake-tools? HOT 5
- There was an error running ctest to determine available test executables
- YAMLException on configure HOT 7
- sysroot arg isn't being passed properly
- usepresets context is not set after using quickstart HOT 4
- Investigate passing multiple workspace browse configurations (1 for each target+fileGroup combo) to C/C++ extension HOT 4
- After clicking Run Tests an error is reported HOT 1
- FR: Make it easier to setup a launch configuration with CMake Tools HOT 3
- Configure raises an error if CTest scripts print to stdout HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from vscode-cmake-tools.