Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Tab size and indent size

In the configuration of text editors I notice the following settings: tab size and indent size (which both are usually set to 2 or 4). What is the difference between them?

like image 218
user1427673 Avatar asked Nov 18 '14 22:11

user1427673


People also ask

How big is a tab indent?

To indent using the Tab key: A quick way to indent is to use the Tab key. This will create a first-line indent of 1/2 inch.

Should a tab be 2 or 4 spaces?

1. Indentation: tabs vs spaces. Java: 4 spaces, tabs must be set at 8 spaces.

Is a tab 4 spaces?

Sets the distance in spaces between tab stops. The default is four spaces. Sets the size in spaces of an automatic indentation.

How many spaces is an indent?

Standard paragraph indentation is about five spaces or one-quarter to one-half of an inch, depending on which style guide you follow. In online writing, if your software doesn't allow indentation, insert a line space to indicate a new paragraph.


1 Answers

Tab size is the amount of whitespaces that will be visually displayed where the "tab" character is encountered. The indent size - is how many whitespaces will be put in the indented line start. Sometimes it is done with tabs, sometimes with spaces, depending on configuration.

like image 166
Eugene Sh. Avatar answered Oct 29 '22 14:10

Eugene Sh.