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?
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.
1. Indentation: tabs vs spaces. Java: 4 spaces, tabs must be set at 8 spaces.
Sets the distance in spaces between tab stops. The default is four spaces. Sets the size in spaces of an automatic indentation.
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.
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With