Skip to content

Instantly share code, notes, and snippets.

@shnam7
Last active November 12, 2023 23:01
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save shnam7/953d19da155ecb32b4a2923589d6748d to your computer and use it in GitHub Desktop.
Save shnam7/953d19da155ecb32b4a2923589d6748d to your computer and use it in GitHub Desktop.
PlatformIO - Changing default projects location in vscode
1. Open PlatformIO terminal: Press <Ctrl>+P and type "platformIO: Net Terminal"
2. In the PlatformIO terminal, execute following command
> platformio settings get projects_dir # check current default location
> platformio settings set projects_dir "New Directory"
3. short command
> pio settings get projects_dir
> pio settings set projects_dir "New Directory"
reference: https://docs.platformio.org/en/latest/core/userguide/cmd_settings.html#platformio-settings-set
@shnam7
Copy link
Author

shnam7 commented May 10, 2021

Sorry for the confusion and thanks for the feedback! I fixed it now.

@laksirisamitha
Copy link

thanks to you I fixed it.

@KH0000001
Copy link

KH0000001 commented Nov 11, 2023

I couldn't found on VSCode’s PIO Home tab.
Search box shows “No matching results”.
What should I do?
I want to change defalut location for iCloud’s folder.

@shnam7
Copy link
Author

shnam7 commented Nov 11, 2023

"Platform IO: Home" icon is shown at the bottom of VS Code, once you set up your platform IO project.

PIO-home

@KH0000001
Copy link

Thank you so much!
I could change the settings after executing this command.

pio settings set projects_dir /Users/<your user name>/Library/"Mobile Documents"/com~apple~CloudDocs/<below the path of the folder you want to save>

And I could found below.

2023-11-12 15 51のイメージ

@shnam7
Copy link
Author

shnam7 commented Nov 12, 2023

Great. Thank you for sharing!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment