0

I have suddenly started to get the variable values displayed as I step through VSCode, using the Python extension. I presume I must have pressed a key combo to turn it on, but any ideas how to turn it off please? I have looked through the key combo list, but cannot see anything obvious.

Thanks

enter image description here

11
  • What is "the Python extension"? Every extension has its own section in the GUI configuration view and in a JSON configuration file. Have you checked it? There are 3 places for configurations: workspace (.vscode directory`), user and system. Have you checked all 3 configuration files? AFAIK, there is no other place where this could be stored in VS Code. Commented Feb 6 at 11:27
  • sorry my terminology is not great, by Python extension I mean the add on, the plug in, whatever it is called that lets displays python code fully. As I mentioned I checked the key bindings as clearly I just accidentally turned something on, and just need to turn it off again. I have cleared the keybindings.json file, although it was empty! Commented Feb 6 at 11:32
  • "Extension" is the correct term, but the marketplace has dozens of Python extensions. Which one do you mean? If you change the configuration, it has to be stored in one of the listed files. Have you checked it? The workspace configuration is stored in the workspace root. The places for the user configuration and system configuration depend on your OS and maybe how you've installed VS Code. Commented Feb 6 at 11:47
  • you are probably running in debug mode, so the values of the variables are displayed. That's quite useful, why do you want it away? All extensions have a json file with configuration, check there if there's a flag for turning this display off. Commented Feb 6 at 12:46
  • 1
    This question is similar to: Visual Studio Code - How to display variable values inline during debugging?. If you believe it’s different, please edit the question, make it clear how it’s different and/or how the answers on that question are not helpful for your problem. Commented Feb 11 at 9:53

1 Answer 1

0

Finally sorted it

"Debug: Inline Values" was set to Auto. Changed it to off and that cleared it.

I did try disabling showPythonInlineValues in the DebugPy and Notebook settings but that had no effect

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.