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
{{ message }}
This repository was archived by the owner on Oct 1, 2024. It is now read-only.
Copy file name to clipboardExpand all lines: README.md
+26-16
Original file line number
Diff line number
Diff line change
@@ -15,19 +15,31 @@ Welcome to the Visual Studio Code extension for **Arduino** <sup>preview</sup> !
15
15
* Integrated Arduino Debugging <sup>New</sup>
16
16
17
17
## Prerequisites
18
-
Either the Arduino IDE or Arduino CLI are required.
18
+
Either the legacy Arduino IDE or Arduino CLI are required. The recommended
19
+
approach is to use the version of Arduino CLI that comes bundled with the
20
+
extension, which works out of the box. Support for the legacy Arduino IDE will
21
+
be removed in a future version of the extension.
19
22
20
-
### Arduino IDE
21
-
The Arduino IDE can be installed the Arduino [download page](https://www.arduino.cc/en/main/software#download).
22
-
- The supported Arduino IDE versions are `1.6.x` and up to, but not including, 2.0.0.
23
+
### Arduino CLI
24
+
To use the bundled version of Arduino CLI, `arduino.useArduinoCli` should be `true`,
25
+
and `arduino.path` and `arduino.commandPath` should be empty or unset.
26
+
`arduino.useArduinoCli` defaults to `false` while we deprecate support for the
27
+
Arduino IDE, but there will be a prompt when the extension first activates to
28
+
switch to the Arduino CLI.
29
+
30
+
If you want to use a custom version of Arduino CLI, it can be downloaded from
31
+
the repository's [release page](https://github.com/arduino/arduino-cli/releases/).
32
+
For custom versions, `arduino.path` must be set to the directory containing the
33
+
Arduino CLI executable.
34
+
35
+
### Legacy Arduino IDE
36
+
Use of the legacy Arduino IDE is not recommended, and support for the legacy
37
+
Arduino IDE will be removed in a future version of the extension. The legacy
38
+
Arduino IDE can be installed from the Arduino [download page](https://www.arduino.cc/en/main/software#download).
39
+
- The supported legacy Arduino IDE versions are `1.6.x` and up to, but not including, `2.0.0`.
23
40
- The Windows Store's version of the Arduino IDE is not supported because of the sandbox environment that the application runs in.
24
41
-*Note:* Arduino IDE `1.8.7` had some breaking changes, causing board package and library installation failures. These failures were corrected in `1.8.8` and later.
25
-
-*Note:* Arduino IDE `2.X.Y` is not supported at this time [issue 1477](https://github.com/microsoft/vscode-arduino/issues/1477)
26
-
27
-
### Arduino CLI
28
-
The Arduino CLI can be downloaded from the repository's [release page](https://github.com/arduino/arduino-cli/releases/tag/0.13.0)
29
-
- The extension has only been tested with v0.13.0.
30
-
- If you use the CLI you will have to set `arduino.path` since the CLI does not have a default path.
42
+
-*Note:* Arduino IDE `2.X.Y` is not supported and there are no plans for support in the future ([issue 1477](https://github.com/microsoft/vscode-arduino/issues/1477)).
31
43
32
44
## Installation
33
45
Open VS Code and press <kbd>F1</kbd> or <kbd>Ctrl</kbd> + <kbd>Shift</kbd> + <kbd>P</kbd> *or* <kbd>Cmd</kbd> + <kbd>Shift</kbd> + <kbd>P</kbd> to open command palette, select **Install Extension** and type `vscode-arduino`.
@@ -69,9 +81,9 @@ This extension provides several commands in the Command Palette (<kbd>F1</kbd> o
69
81
## Options
70
82
| Option | Description |
71
83
| --- | --- |
72
-
|`arduino.useArduinoCli`| Whether to use the Arduino CLI (`true`) or the Arduino IDE (`false`) -- defaults to `false`. If using `true`, make sure to set the `arduino.path` and `arduino.commandPath` values correctly. |
73
-
|`arduino.path`| Path to the Arduino installation. You can use a custom version of Arduino by modifying this setting to include the full path. Example: `C:\\Program Files\\Arduino` for Windows, `/Applications` for Mac, `/home/<username>/Downloads/arduino-1.8.1` for Linux. (Requires a restart after change). The default value is automatically detected from your Arduino IDE installation path. To use the Arduino CLI, use the path that contains the `arduino-cli` executable (e.g. `/usr/local/bin`). |
74
-
|`arduino.commandPath`| Path to an executable (or script) relative to `arduino.path`. The default value is `arduino_debug.exe` for Windows, `Contents/MacOS/Arduino` for Mac and `arduino` for Linux, You also can use a custom launch script to run Arduino by modifying this setting. (Requires a restart after change) Example: `run-arduino.bat` for Windows, `Contents/MacOS/run-arduino.sh` for Mac and `bin/run-arduino.sh` for Linux. To use the Arduino CLI, use `arduino-cli`. |
84
+
|`arduino.useArduinoCli`| Whether to use the Arduino CLI (`true`) or the legacy Arduino IDE (`false`) -- defaults to `false`. If using `true`, either leave the `arduino.path` and `arduino.commandPath` values unset to use the bundled version of Arduino CLI, or point them at a custom version of Arduino CLI. Note that a future version of the extension will change this default to `true` and remove support for legacy Arduino IDE. |
85
+
|`arduino.path`| Path to the Arduino installation. You can use a custom version of Arduino by modifying this setting to include the full path. Example: `C:\\Program Files\\Arduino` for Windows, `/Applications` for Mac, `/home/<username>/Downloads/arduino-1.8.1` for Linux. (Requires a restart after change). The default value is automatically detected from your legacy Arduino IDE installation path. To use the Arduino CLI, use the path that contains the `arduino-cli` executable (e.g. `/usr/local/bin`), or leave it unset to use the bundled version of Arduino CLI. |
86
+
|`arduino.commandPath`| Path to an executable (or script) relative to `arduino.path`. The default value is `arduino_debug.exe` for Windows, `Contents/MacOS/Arduino` for Mac and `arduino` for Linux, You also can use a custom launch script to run Arduino by modifying this setting. (Requires a restart after change) Example: `run-arduino.bat` for Windows, `Contents/MacOS/run-arduino.sh` for Mac and `bin/run-arduino.sh` for Linux. To use the bundled version of Arduino CLI, leave this option unset. To use a custom version of Arduino CLI, use `arduino-cli`. |
75
87
|`arduino.additionalUrls`| Additional Boards Manager URLs for 3rd party packages as a string array. The default value is empty. |
76
88
|`arduino.logLevel`| CLI output log level. Could be info or verbose. The default value is `"info"`. |
77
89
|`arduino.clearOutputOnBuild`| Clear the output logs before uploading or verifying. Default value is `false`. |
@@ -87,8 +99,7 @@ The following Visual Studio Code settings are available for the Arduino extensio
87
99
88
100
```json
89
101
{
90
-
"arduino.path": "C:/Program Files (x86)/Arduino",
91
-
"arduino.commandPath": "arduino_debug.exe",
102
+
"arduino.useArduinoCli": true,
92
103
"arduino.logLevel": "info",
93
104
"arduino.allowPDEFiletype": false,
94
105
"arduino.enableUSBDetection": true,
@@ -100,7 +111,6 @@ The following Visual Studio Code settings are available for the Arduino extensio
100
111
],
101
112
}
102
113
```
103
-
*Note:* You only need to set `arduino.path` in Visual Studio Code settings, other options are not required.
104
114
105
115
The following settings are as per sketch settings of the Arduino extension. You can find them in
0 commit comments