Monitor speed setting default

Hello everybody,

I am started with vscode and platformio short time ago.

I program mostly the ESP32, with Framework Arduino

On new project the monitor speed is by default to 9600bds.

So each time I must modify the monitor_speed to 115200 via platformio.ini.

How can I adapt the setting of platformio to start a new project with a terminal speed of 115200 ???

Thank you

Mich

Unfortunately there is no way to change the default setting.

Personally I create projects (folders and files) manually. Using the VS Code snippets feature, this is really fast. I need 15 seconds to create a blank new ESP32 project.

Here are my steps:

  • create a project folder, right click on the folder and chose “open with code” to bring up VS Code in this particular folder (not shown in the video below).

  • create a platformio.ini file

  • type “platformio” and press [enter] and save the file [ctrl+s]

  • create a src folder

  • create the src/main.cpp file

  • type “adc” and press [enter] and save the file [ctrl+s]

  • click the PlatformIO button to initialize and startup PlatformIO

Here are my snippets:

platformio.code-snippets (platformio.ini code)

{
	"platformio": {
		"prefix": "platformio",
		"body": [
			"[env:esp32dev]",
			"platform = espressif32",
			"board = esp32dev",
			"framework = arduino",
			"monitor_speed = 115200"
		]
	}
}

adc.code-snippets (arduino default code)

{
	  "Arduino default code" : {
		"prefix" : "adc",
		"body" : [
			"#include <Arduino.h>",
			"",
			"void setup() {",
			"    Serial.begin(115200);",
			"    Serial.println(\"Hello World\");",
			"}",
			"",
			"void loop() {",
			"}"
		]
	}
}

Hi Silvar2311,

I am a little despit tha is not possible.

I have done each time the speed adjust.

But OK

I build very small project (100-200 lines) so I build many project

and I am a little azzy :upside_down_face:

Thank

michel