You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
vscode: add the "clean", "unit test" and "code sytle check" tasks in the file: "./vscode/tasks.json" and improve the corresponding help document file: "docs/howto/how_to_build_and_release.md". A small bug is also fixed in the "start_build_docker" function of the file "apollo_docker.sh" when using vscode to pull the docker image from China. (ApolloAuto#3309)
* vscode: add the "clean" and "code sytle check" tasks in the file: "./vscode/tasks.json" and improve the corresponding help document file: "docs/howto/how_to_build_and_release.md". A small bug is also fixed in the "start_build_docker" function of the file "apollo_docker.sh" when using vscode to pull the docker image from China.
Copy file name to clipboardexpand all lines: docs/howto/how_to_build_and_release.md
+8-2
Original file line number
Diff line number
Diff line change
@@ -48,7 +48,7 @@ The command will push your most recent release docker image to the docker hub.
48
48
49
49
## <spanid="build_in_vscode">Build in Visual Studio Code</span>
50
50
### Install VSCode
51
-
The easiest way to install for Debian/Ubuntu based distributions is to download inhttps://code.visualstudio.com and install the .deb package (64-bit) either through the graphical software center if it's available or through the command line with:
51
+
The easiest way to install for Debian/Ubuntu based distributions is to download from https://code.visualstudio.com and install the .deb package (64-bit) either through the graphical software center if it's available or through the command line with:
52
52
```bash
53
53
sudo dpkg -i <file>.deb
54
54
sudo apt-get install -f # Install dependencies
@@ -62,8 +62,14 @@ code
62
62
Use the keyboard shortcut (Ctrl+K Ctrl+O) to open the Apollo project.
63
63
### Build the Apollo project in VSCode
64
64
Use the keyboard shortcut (Ctrl+Shift+B) to build the Apollo project.
65
+
### Run all unit tests for the Apollo project in VSCode
66
+
Select the "Tasks->Run Tasks..." menu command and click "run all unit tests for the apollo project" from a popup menu to check the code style for the Apollo project.
67
+
### Run a code style check task for the Apollo project in VSCode
68
+
Select the "Tasks->Run Tasks..." menu command and click "code style check for the apollo project" from a popup menu to check the code style for the Apollo project.
69
+
### Clean the Apollo project in VSCode
70
+
Select the "Tasks->Run Tasks..." menu command and click "clean the apollo project" from a popup menu to clean the Apollo project.
65
71
### Change the building option
66
-
you can change the "build" option to an other one such as "build_gpu" (refer to the "apollo.sh" file for details) in ".vscode/tasks.json"
72
+
You can change the "build" option to another one such as "build_gpu" (refer to the "apollo.sh" file for details) in ".vscode/tasks.json"
0 commit comments