1. VSCode-Linux programming environment to build
1.1 Introduction
- With a good tool! Familiar with the system programming skills!
- First visit "embedded Linux foundation tutorial" and APUE the book of God, and then run the program on the basis of notes on github!
- Familiar with how to use existing tools as much as possible, to speed up the development efficiency. VSCode take full advantage of the plug-in, a program is compiled, static checking, debugging, version management, document build, build unit tests and so on.
- Learn Linux system programming!
1.2 Start
1.2.1. Github repository organization
Creating a new branch in zsLearn, sample code replica using gitmoudule book.
1.2.2 plug-in installation and selection
- Look plug-in documentation, select
1.2.3. Compile
Vscode used in the build CMake using cmake-tools widget
1.2.4. Static checks
Use c / c ++ adadvanced lint static checks currently in use clang static analyzer
1.2.5. Version Management
There is no doubt use Git, use the front vscode
1.2.6 Unit testing TDD
With CMake conjunction GTest unit test to write, using the plug-in implementation CMake-tools unit testing distal
1.2.7. Document Building
Use doxygen for document constructed using markdown for document writing
1.2.7.1. doxygen
Temporarily get.
1.2.7.2. markdown
- Say that using markdown on vscode, the company has used its own was "consummate." Mainly used in a series of plug-ins, the most important is a plug-in to MPE.
1.2.8. Debugging
Debugging with gdb, gdb using vscode the front end, to try how remote debugging.