-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Jos Verlinde <Jos.Verlinde@microsoft.com>
- Loading branch information
Showing
7 changed files
with
1,603 additions
and
1,545 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
(micropico)= | ||
# MicroPico Configuration [Pylance] | ||
|
||
[MicroPico](https://github.com/paulober/MicroPico) is a Visual Studio Code extension designed to simplify and accelerate the development of MicroPython projects for the Raspberry Pi Pico and Pico W boards. This tool streamlines the coding process, providing code highlighting, auto-completion, code snippets, and project management features, all tailored for the seamless development experience with MicroPython on Raspberry Pi Pico and Pico W micro controllers. | ||
|
||
The stubs used by MicroPico are the Raspberry Pico W stubs from the micropython-stubs project. | ||
MicroPico automatically installs the stubs for you, and sets the configuration, so you don't have to worry about setting up the stubs manually. | ||
|
||
Under the hood is used the [Pylance] extension to provide performant Python language support. | ||
and most of the the settings for vscode and pylance are set up for you. | ||
|
||
The default configuration is: | ||
|
||
``` json | ||
{ | ||
"python.languageServer": "Pylance", | ||
"python.analysis.typeCheckingMode": "basic", | ||
"python.analysis.diagnosticSeverityOverrides": { | ||
"reportMissingModuleSource": "none" | ||
}, | ||
"python.analysis.typeshedPaths": [ | ||
"~/.micropico-stubs/included" | ||
], | ||
"python.analysis.extraPaths": [ | ||
"~/.micropico-stubs/included", | ||
|
||
], | ||
// MicroPico settings | ||
"micropico.syncFolder": "", | ||
"micropico.openOnStart": true, | ||
} | ||
|
||
``` | ||
|
||
Things to note: | ||
- The stubs are stored in the `~/.micropico-stubs/included` folder, which is a location shared by all your projects. | ||
- The location of the stubs is set by `python.analysis.extraPaths` rather than `python.analysis.stubPath`. | ||
- MicroPico keeps the stubs up to date for you, so you don't have to worry about updating them manually, unless you want to. | ||
|
Oops, something went wrong.