![Sublime Text Tutorial](/sublime_text/images/sublime-text-mini-logo.jpg)
- 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 - Column Selection
In this chapter, you will learn various shortcuts keys to move and select the columns of a file in Sublime Text.
Moving the Pointer to the Beginning of Code
You can use the shortcut Ctrl+Home to move the pointer to the beginning of the code in Sublime Text editor.
Observe the sample code shown here.
![Sample Code](/sublime_text/images/sample_code.jpg)
The screenshot given below shows the same code where the cursor is moved to its beginning.
![Screenshot Cursor moved to Beginning](/sublime_text/images/screenshot_cursor_moved_to_beginning.jpg)
Extending a Column
You can use the shortcut Ctrl+L to extend a specified column. This shortcut will select the column which includes the pointer. The following screenshot explains this in a detailed manner −
![Extending a Column](/sublime_text/images/extending_a_column.jpg)
Trimming a column
You can use the shortcut Ctrl+K to trim the specified column of the file. For OSX, you will have to use the key combination Cmd+K for this purpose.
The example shown here displays the code where the line mentioned in the fifth column is trimmed.
![Trimming a column](/sublime_text/images/trimming_a_column.jpg)
Split a Block of Text
You can use the shortcut Ctrl+Shift+K to split a selected block of text into two selections.
![Split a Block of Text](/sublime_text/images/split_block_of_text.jpg)
Note − The difference in key combinations from the previous key combination is that columns are visible. Ctrl+Shift+K removes the column number from the specified code, whereas Ctrl+K keeps the column number intact after trimming the entire column.