niomstack.blogg.se

Python visual studio code extensions
Python visual studio code extensions





python visual studio code extensions

Once done, you will have your own shortcut to paste and indent automatically (I have set it to Alt + P)

python visual studio code extensions

Now about setting it up: You need to set just one keybinding for the command "pyPasteIndent.pasteAndIndent" provided by the extension. That's it, and I think that can be useful in several places. If you want to indent backward, you do it with Shift+ Tab. indent a whole block manually: select the whole block, and then click Tab.It just indents the first line, and that's not a good behavior.

python visual studio code extensions

As said there is the Python extension which now do it out of the box, but still don't do a great job, and an example is when you copy and past a whole block into a function or so.







Python visual studio code extensions