Giter Site home page Giter Site logo

gladingray / newcprojectforvscode Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 0.0 30 KB

这个小玩意可以迅速建立linux-vscode下的C工程结构,快速生成适应多文件编译调试的*.json文件(linux平台下)

License: GNU General Public License v3.0

C 98.22% C++ 1.78%

newcprojectforvscode's Introduction

newCprojectforVscode

这个小玩意可以迅速建立linux-vscode下的C工程结构,快速生成适应多文件编译调试的*.json文件(linux平台下)

使用说明

在ubuntu中(我的是wsl2),使用vscode打开该工程,再确认*.json文件中的gcc路径以及gdb路径(或其他用于编译或者调试的工具路径)正确时,ctrl+shift+B即可编译,F5调试运行。

该程序需要两个参数,工程名以及可执行文件名,参数一定要正确。

最好将生成的可执行文件路径加入PATH环境变量,或者将可执行文件放到任意一个处于PATH中的路径即可(可能需要root权限)

目录说明

root_dir/

 |---.vscode/

  |----tasks.json //默认生成任务

  |----launch.json //调试运行文件

 |---include/ //存放.h文件

 |---src/ //存放.c文件

  |----root_dir.c //样例.c文件

newcprojectforvscode's People

Contributors

gladingray avatar

Stargazers

 avatar

Watchers

 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.