I've always struggled with how slow Pylance
IntelliSense
becomes when a project gets large. It turns out that with a minor tweak, my system is super speedy again!
Try adding a pyrightconfig.json
file to the root of your project. By excluding folders that you don't need to be indexing (node_modules
, cdk.out
, etc.) you may see a significant boost.
Here is a simple example:
{
"include": [
"."
],
"exclude": [
"**/node_modules",
"**/cdk.out",
"**/.pytest_cache",
"**/build",
"**/dist",
"**/.vscode",
"**/__pycache__",
],
"reportMissingImports": true,
}
Share any other tips you have in the comments!
Top comments (0)