Coder Social home page Coder Social logo

vscode-cppprojects's Introduction

Gene's C++ frobs

GitHub last commit

GitHub release GitHub release date

C++17 Platforms macOS license

Sponsors Twitter @GeneDeLisaDev GitHub followers

What's this?

Running NodeJS/{Java,Type}Script in vscode? Easy. C++? Not so much.

This is a Visual Studio Code multi-root workspace containing separate small C++ projects. helloworld and helloworld2 have the same contents. I wanted to see if the tasks would work for each project. Yes! The task picker will tell you which project your are currently in.

You should be able to simply copy the helloworld project, add the copy to the workspace, then replace the code with your own.

The executable generated will be named the same as your project name.

You can build via cmake/make, or use the active file task if you're compiling just one file.

I'm not a visual studio code expert. But out of the box, developing C++ is a bit of a pain. If you know an easier way, let me know!

Tasks defined

cmake and make

Runs cmake to create the Makefile in build, then it runs make to build the executable.

make

You probably want to run cmake once. Then when your code is updated, run make.

clang++ C++17 build active file

If you are editing a C++ file and you want to compile it, choose this task.

If you are editing a non C++ file and run this, hilarity will ensue.

clean

Removes the contents of the build directory.

Blog post for this example.

Blog post coming coon

Buy my kitty Giacomo some cat food

If you find this useful, my kitty likes snacks.

paypal

Giacomo Kitty

Licensing

MIT

Please read the LICENSE for details.

Credits

vscode-cppprojects's People

Contributors

genedelisa avatar

Watchers

James Cloos avatar

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.