Giter Site home page Giter Site logo

Newbie Guide about vscode-cmake-tools HOT 5 CLOSED

microsoft avatar microsoft commented on May 21, 2024
Newbie Guide

from vscode-cmake-tools.

Comments (5)

vector-of-bool avatar vector-of-bool commented on May 21, 2024 2

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.

spinicist avatar spinicist commented on May 21, 2024

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.

vector-of-bool avatar vector-of-bool commented on May 21, 2024

At the moment, no. But I am planning on adding a "Clear output before build" setting that can be enabled.

from vscode-cmake-tools.

spinicist avatar spinicist commented on May 21, 2024

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.

vector-of-bool avatar vector-of-bool commented on May 21, 2024

Sure, that would be helpful. Thanks!

from vscode-cmake-tools.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.