microsoft / vscode-arduino

Visual Studio Code extension for Arduino
Other
1.17k stars 226 forks source link

Setup 'configuration file' for Arduino Cli. #1519

Open i0n- opened 2 years ago

i0n- commented 2 years ago

Add support to set the configuration file to use when the Arduino-Clie is in use.

Config file like arduino-cli.yaml are very importan for DEVOPS setup.

Please add support of it.

FYI: Config file documentation.

kopp commented 1 year ago

In my opinion, it would be sufficient, if the Readme mentions, what steps you need to run to configure arduino-cli, or in general, what to do on the CLI and what to do in the extension (UI).

trethaller commented 1 year ago

I understand, how are we supposed to use the arduino-cli configuration file together with the extension at the moment? I couldn't find this in the README

LitileXueZha commented 1 year ago

This bundled arduino-cli will load default configuration file automatically, if exists.

For example, you want to set proxy:

  1. First, generate the default config: <path-to>/arduino-cli config init
  2. Set proxy: <path-to>/arduino-cli config set network.proxy http://1.2.3.4:5555