Most voted "indentation" questions
25 questions
Sort by count of
-
18
votes3
answers66206
viewsIs there a shortcut to indenting the code in Sublime 3?
It is noticeable that in several IDE’s there are some shortcuts to indent the code. For example: Eclipse(Win): Ctrl + Shift + F Android Studio(Win): Ctrl + Alt + L As everyone* knows, I assume,…
-
9
votes3
answers318
viewsIndentation in statement "Else"
What is the difference in the indentation of else "out of" the if. In this case it is to return the prime numbers up to the nth 'n' value. First case: for i in range(2, n): for j in range(2, i): if…
-
8
votes4
answers8945
viewsWhat’s the importance of indenting the code?
It is common to hear that it is important to keep the code indented, which is not a difficult task with the help of an IDE. Excluding languages that require indentation, such as Python, why is it…
indentationasked 7 years, 8 months ago vinibrsl 19,711 -
7
votes1
answer4748
viewsVisual Studio Indentation Configuration
I’m starting to program C# in the VS (if anyone knows a better IDE, thank you) and he has a peculiarity that is irritating me: I use key indentation as follows: for(;;){ //code } But the VS, when…
-
7
votes3
answers1500
viewsWhen to use blank lines in a Python program?
Skipping lines is one of the aspects that make a program well indented? If so, what is the criteria used to skip lines?
-
7
votes3
answers520
viewsWhy do line breaks between elements cause space between them?
I was doing a few code organization here before commiting and realized that an indentation in HTML caused a problem in my layout, so I went to inspect to find out what I had done wrong besides…
-
3
votes2
answers10403
viewsBack a code block in Visual Studio Code
What is the hotkey used to indent an entire block of code in Visual Studio Code, to indent?
-
2
votes1
answer11445
viewsLine break within HTML tags in Visual Studio Code
How to enable line breaking within tags HTML to look like this? <input class="someClass" id="someId" name="someName" ng-model="vm.model" ng-click="vm.someAction()"/> When format the text in…
-
2
votes1
answer225
viewsProblems with PEP8 indentation rules
I’m using the autopep8 extension in sublime text 3 and it suggests to me that the following line looks like this: self.buttons = [Button(self.fonts["alfa_slab_one_regular_40"], "JOGAR",…
-
2
votes1
answer180
viewsIndentation error
I’m trying to create a TextInput in the Kivy and define its dimensions, only whenever it puts its dimensions of error: invalid indentation,must be a Multiple of 4 Spaces. I still don’t understand…
-
2
votes3
answers1846
viewsAuto indentation problem when saving to Vscode
With a problem in auto-indentation of Vscode, I have tried to disable even then the problem remains. When saving a file Vscode automatically changes the indentation, follows the image before saving…
-
1
votes2
answers7869
viewsIndentation of code C
Two other people and I are developing a C code, and each made their own part of the code, but it got very "messy", is there a command for the codeblocks, the IDE we’re using, or some site that…
-
1
votes1
answer1259
viewsHow to decrease TAB size in Sublime Text 3
I edit HTML files with CSS and JS using Sublime Text 3. To reset to Sublime Text 3, use shortcut Ctrl+shift+r when pasting a code from the outside. What is the best practice to automate the tab key…
-
1
votes0
answers1081
viewsAutomatic tag indentation in Sublime Text 3
I am facing problems copying and pasting XML or HTML codes from other applications in Sublime Text 3. The HTML code for example, after a Ctrl + v, is in this style: <!DOCTYPE…
-
1
votes1
answer675
viewsMulti-line comments and Python identation error
I was writing my code and I needed to block some lines of code. As there are several, I decided to use the 3 quotes to block a part of the code. However, when I run the code it presents an…
-
1
votes1
answer312
viewsindentation in vs code how to configure
how to swap whitespace for floating points in indentation in VS Code…
-
0
votes1
answer1260
viewsTab vs. spaces for code indentation
Is there any recommendation on what is more appropriate? Tab character (\t) or spaces? From what I can see, there are usually conventions for language: Ruby: two spaces Delphi: two spaces Python:…
-
0
votes2
answers2109
viewsAutomatically indent all code in vim
It is possible to automatically make vim indent an entire file? For example, in Eclipse you can use the shortcut Ctrl+A + Ctrl+I.
-
0
votes1
answer56
viewsIndentation with problems in Studio
I’m getting a lot of code indentation on Android Studio. My code is very ugly as it shows the image and I can’t indent it. I already changed the keymap for eclipse, netbeans and looks like nothing…
-
0
votes3
answers1047
viewsPython Indentation Problems in Geany
Since I switched from IDE ( moved from Pycharm to Geany ), I started having a lot of problems with the error: "inconsistent use of tabs and Spaces in indentation". I would like to know a way to…
-
0
votes1
answer740
viewsHow to swap inline indentation for Vscode dot
I wonder if to use dot instead of indentation online is necessary some extension? In case I think it would be like seeing each space a point. Example:…
visual-studio visual-studio-code configuration indentationasked 6 years, 4 months ago Cleyton vinicius 41 -
0
votes0
answers29
viewsHow to paste with correct indentation?
It’s always a lot of work to fix indentation after copy and paste, but is there a way to paste with correct indentation? For example: x = int(input("0 ou 1? ")) if x == 1: print("ON") if x == 0:…
python python-3.x visual-studio-code ipython-notebook indentationasked 3 years, 3 months ago CrashXY 109 -
-1
votes1
answer1011
viewsHow to Uninstall an Entire Code at Once in Python
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…
-
-4
votes1
answer159
viewsSql query formatting in one line only
In some cases, when we save a query. sql, even if it is indented correctly in the SSMS when we open in the Notepad (windows) all the text is in one line, joining END with GO (ENDGO) at the end of a…
-
-4
votes1
answer187
viewsHow to insert HTML using PHP in indented form
I created a PHP file that when executed CREATES an html file already with an html code inside it. Later this PHP file that is being executed TAKES this HTML file and inserts another html code in a…