Git Product home page Git Product logo

vscode-c51's Introduction

VSCode-C51

VSCode Keil C51工程模板 VSCode-C51

视频教程

VSCode插件

感谢MoonAndHaze使用本模版开发了一个VSCode插件,很大程度上降低了本模版的使用难度。 插件项目地址

版本更新

  • 已修复文件路径带空格报错问题
  • 已修复路径参数带有引号的bug

文件夹说明

  • src\ 存放代码文件
  • build\ 编译过程生成的文件
  • environment\ 51启动文件和LIB静态连编文件

修改说明

1、修改c_cpp_properties.json

  "includePath": [
  "${workspaceFolder}/**",
  "‪D:/Program Files/Keil5/C51/INC/**",
],

将includePath中的Keil的路径修改为你自己的

2、修改tasks.json

  "args": [
    "${workspaceFolder}",
    "${workspaceFolder}\\src",
    "${workspaceFolder}\\environment",
    "main"
],

主要修改第四个参数"main",这个相当于Keil中的工程名

3、修改compile.bat

@echo off
set KEIL_BIN_FOLDER=D:\Program Files\Keil5\C51\BIN

将KEIL_BIN_FOLDER修改为你的C51\BIN的地址

注意事项

所有的代码文件必须放到src根目录下面, 编译时,点击终端-运行生成任务

vscode-c51's People

Contributors

felikslv01 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.