How to Uninstall an Entire Code at Once in Python

Asked

Viewed 1,011 times

-1

Since python is indent sensitive when Voce deletes a structure for example that sees that it will not use it anymore it starts to give error because the rest of the code is not indented as it should, to indent it is only select the code you want and give tab, but to get it all back to a left space at once, how to do?

  • This has nothing to do with Python, it is a feature of the program you are using to edit code. Anyway, can [Dit] the post and give more details, always taking into account the site scope.

  • 2

    Identation It’s your program - if the "rest of the code isn’t indented as it should be", you don’t have a valid program. How you devise and disintegrate blocks of code is not something from the lingugem, but a tool from the editor you are using to program. The vast majority of code editors fail by pressing "shift + tab" with the selected block. (alias, that’s why the tab key, on most keyboards, has an arrow to the front and one to the back, indicating that it also disindentates)

1 answer

3

selects all the code and presses Shift+Tab.

  • 1

    You gave the right answer and the negative people, congratulations to those involved!

Browser other questions tagged

You are not signed in. Login or sign up in order to post.