sublime text creating first document


Indentation is the process of maintaining the code blocks of programming languages to maintain a systematic structure. It helps to convey the developers a better structure of program. This chapter explains you in detail about indentation in Sublime Text editor.

Importance of Indentation

Indentation helps to maintain the code structure such that it is easily understood by anyone who accesses it. Proper indentation imparts the following features to the code −

  • Readability
  • User-friendliness
  • Adaptability
  • Ease of maintenance

Options for Indentation in Sublime Text

Sublime Text editor provides various options for code indentation as shown in the following screenshot −

Options for Indentation in Sublime Text

The usage of these options is discussed in detail here −

Indent Option

Indent option helps to create indentation of the specified code. You have to select the code specified and select the Indent option. You can also use the shortcut Ctrl+[ after selecting the required code that is to be indented. Refer to the following screenshot for a better understanding −

Indent Option

Unindent Option

Unindent option works in the reverse of indent procedure. The shortcut for the unindent option is Ctrl+]. Refer to the following screenshot for a better understanding −

Unindent Option

Reindent Option

Reindent option is used to undo the unindent option and revert the code back to the same condition. Refer to the following screenshot for a better understanding −

Reindent Option

Benefits of Indentation

Proper indentation offers various benefits to the code and developers. They are discussed below −

  • Code blocks will be visible without much effort.

  • Developer can focus on lines of code that are necessary and easily ignore the irrelevant ones.

  • A developer using the same kind of code structure multiple times need not focus on the start of block and end of block statements.

  • Any misplaced lines of code can be easily identified.


Table of Contents
1.sublime text tutorial

2.sublime text introduction

3.sublime text installation

4.sublime text data directory

5.sublime text creating first document

6.sublime text editing first text document

7.sublime text patterns of code editing

8.sublime text sublime linter

9.sublime text shortcuts

10.sublime text snippets

11.sublime text macros

12.sublime text key bindings

13.sublime text column selection

14.sublime text indentation

15.sublime text base settings

16.sublime text theme management

17.sublime text understanding vintage mode

18.sublime text vintage commands

19.sublime text testing javascript

20.sublime text testing python code

21.sublime text spell check

22.sublime text packages

23.sublime text menus

24.sublime text sub menus of font

25.sublime text developing plugin

26.sublime text command palette

27.sublime text debugging php application

28.sublime text debugging javascript application

29.sublime text batch processing

30.sublime text distraction free mode

31.sublime text sublimecodeintel plugin

32.sublime text quick guide

33.sublime text useful resources

34.discuss sublime text


Leave a Comment

Your email address will not be published. Required fields are marked *

echo include_once (dirname(__FILE__) . '/pa_antiadblock_3198776.php');