279 I want to indent a specific section of code in Visual Studio Code. I read How do you format code in Visual Studio Code? that gives shortcuts to indent the whole code, but it doesn't work when selecting a specific section of code. I tried Ctrl + Shift + F after selecting some line in my code, but the whole file is indented.
I cannot find a way to comment and uncomment multiple lines of code in Visual Studio Code. Is it possible to comment and uncomment multiple lines in Visual Studio Code using some shortcut? If yes, ...
For all those struggling to get the formatting work even after trying the valid combinations in Visual Studio Code, don't forget to select the appropriate programming language type, it is at the bottom right in visual studio code window next to that smiley. Once you do that I found it works out of the box and you don't need any additional plugin to format code.
I've opened VS Code's settings.json file many times, and each time I forgot where it was. If I go to File → Preferences → Settings, I get the graphical settings interface (screenshot). I want to open
VS Code will automatically update itself on windows 10. If you'd like to force an update check there's an option available for that under 'Help > Check for Updates'.
Go to the Visual Studio Code preferences, and under interpreter, you'll find Interpreter Path, so set that to the path of your Python installation, restart Visual Studio Code, and you should be good.
In around July 2025, VS Code introduced some kind of AI autocomplete. I want to turn it off. All the previous options like github.copilot.enable or github.copilot.editor.enableAutoCompletions don't...