Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

VS Code: Analyzing in the background

When I start a python project in vs code (with the microsoft python extension) it starts "Analyzing in the background" and python keep crashing. It also uses a ton of memory.enter image description here

Anyone knows how to fix this? Or is it supposed to do this?

like image 583
Ferus Avatar asked Mar 30 '19 11:03

Ferus


People also ask

How do I stop VS Code from running in the background?

It has the shortcut CTRL-ALT-M as default. Check your shortcut by looking at Preferences->Keyboard Shortcuts and then search for stop code run .

What is context menu in VS Code?

Menu items appear in views, actions, and right-click menus. It's important that the grouping of menus remain consistent. If your extension has actions that relate to files, place your actions in the File Explorer context menu (when appropriate).

Does VS Code have an interpreter?

Note: By default, VS Code uses the interpreter selected for your workspace when debugging code. You can override this behavior by specifying a different path in the python property of a debug configuration. See Choose a debugging environment.

How do you organize code in VS Code?

The code formatting is available in Visual Studio Code (VSCode) through the following shortcuts or key combinations: On Windows Shift + Alt + F. On macOS Shift + Option + F. On Linux Ctrl + Shift + I.


1 Answers

This seems to have fixed it for me: https://github.com/Microsoft/vscode-python/issues/4990#issuecomment-477628947

You can disable the new Python Language Server by opening settings in VSCode (Ctrl+, ) and set "python.jediEnabled": true. Then reload the window and/or restart VSCode.

like image 183
KMFR Avatar answered Sep 22 '22 17:09

KMFR