1 |
ron |
1 |
# Auto Build support for Visual Studio Code
|
|
|
2 |
This `Visual Studio Code` extension provides access to the `Auto Build` script.
|
|
|
3 |
|
|
|
4 |
## Installation
|
|
|
5 |
|
|
|
6 |
Get the MarlinFirmware repository from GitHub. Open the directory `buildroot/share/vscode` and copy the `AutoBuildMarlin` folder to the `Visual Studio Code` extension directory. Relaunch `Visual Studio Code` to complete the installation.
|
|
|
7 |
|
|
|
8 |
To find the `Visual Studio Code` extension directory:
|
|
|
9 |
|
|
|
10 |
- Windows - Use Windows Explorer's address bar to open `C:/Users/USERNAME/.vscode/extensions`.
|
|
|
11 |
- Mac - Use the Finder's `Go` menu to open `~/.vscode/extensions`.
|
|
|
12 |
- Linux - In the Terminal type `open ~/.vscode/extensions`.
|
|
|
13 |
|
|
|
14 |
### 3. Install the PlatformIO extension
|
|
|
15 |
Click on `View` > `Command Palette...`
|
|
|
16 |
|
|
|
17 |

|
|
|
18 |
|
|
|
19 |
Find and click on `Extensions: Install Extensions`
|
|
|
20 |
|
|
|
21 |

|
|
|
22 |
|
|
|
23 |
Type `platformio` into the search box and click on `Install` under `PlatformIO IDE`.
|
|
|
24 |
|
|
|
25 |

|
|
|
26 |
|
|
|
27 |
## Usage
|
|
|
28 |
|
|
|
29 |
This extension adds the Auto Build icon  to the Activities bar.
|
|
|
30 |
|
|
|
31 |
### 1. Open the Marlin folder
|
|
|
32 |
Click on `File` > `Open Folder...`
|
|
|
33 |
|
|
|
34 |

|
|
|
35 |
|
|
|
36 |
This brings up the `Open Folder` dialog. Select the folder that has the `platformio.ini` file in it.
|
|
|
37 |
|
|
|
38 |

|
|
|
39 |
|
|
|
40 |
You should see something like the following. If not, click on the Explorer icon in the Activities bar.
|
|
|
41 |
|
|
|
42 |

|
|
|
43 |
|
|
|
44 |
### 2. Click on the Auto Build Icon 
|
|
|
45 |
This brings up the Auto Build menu icon bar.
|
|
|
46 |

|
|
|
47 |
|
|
|
48 |
### 3. Click on one of the four icons
|
|
|
49 |
-  - Clicking on it starts `PIO Build`
|
|
|
50 |
-  - Clicking on it starts `PIO Clean`
|
|
|
51 |
-  - Clicking on it starts `PIO Upload`
|
|
|
52 |
-  - Clicking on it starts `PIO Upload (traceback)`
|