DEV Community

Wesley Cheek
Wesley Cheek

Posted on • Updated on

Make VS Code Faster for Python Auto-Completion

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": [
    "reportMissingImports": true,
Enter fullscreen mode Exit fullscreen mode

Share any other tips you have in the comments!

Top comments (0)