
- Sublime Text Tutorial
- Sublime Text - Home
- Sublime Text – Introduction
- Sublime Text – Installation
- Sublime Text – Data Directory
- Creating First Document
- Editing First Text Document
- Patterns of Code Editing
- Sublime Text – Sublime Linter
- Sublime Text – Shortcuts
- Sublime Text – Snippets
- Sublime Text – Macros
- Sublime Text – Key Bindings
- Sublime Text – Column Selection
- Sublime Text – Indentation
- Sublime Text – Base Settings
- Sublime Text – Theme Management
- Understanding Vintage Mode
- Sublime Text – Vintage Commands
- Sublime Text – Testing Javascript
- Sublime Text – Testing Python Code
- Sublime Text – Spell Check
- Sublime Text – Packages
- Sublime Text – Menus
- Sublime Text – Sub Menus of Font
- Sublime Text – Developing Plugin
- Sublime Text – Command Palette
- Debugging PHP Application
- Debugging Javascript Application
- Sublime Text – Batch Processing
- Distraction Free Mode
- SublimeCodeIntel Plugin
- Sublime Text Useful Resources
- Sublime Text - Quick Guide
- Sublime Text - Useful Resources
- Sublime Text - Discussion
Sublime Text - Patterns of Code Editing
There are various types of code editing and shortcut keys used in Sublime Text editor −
- Splitting the selection into lines
- Wrapping the complete paragraph in HTML file
- Finding all occurrences
This chapter discusses each of them in detail.
Splitting the Selection into Lines
The key combination Ctrl+Shift+L allows you to select the blocks of lines and split them, on Windows. The screenshot given below explains this −

Wrapping Complete Paragraph in HTML File
The key combination Alt+Shift+w for Windows and Cmd+Shift+w for Mac, allows the user to split the sections of code and create various paragraphs. It is referred as a wrap selection with html tag. This also allows you to include HTML tags using Sublime editor.
The screenshot given below explains wrapping text with a HTML tag −

After wrapping the text, the text wrapped with a HTML tag will be seen as shown below −

Finding all Occurrences
The key pattern Ctrl+Shift+f allows you to find a keyword in a given project. The screenshot given below explains this −

The shortcut key opens a window with three options included in it, namely find, where and replace,
where,
find refers to the search of the particular keyword,
where mentions the section as to which repository is searched, and
replace mentions the keyword which is replaced instead of find keyword.