Sublime Text is used by many developers as a lightweight and highly functional text editor. This article introduces Sublime Text 3โs initial configuration method and useful shortcut keys for daily use.
Configuration to Change Character Code and Line Ending Code
By default, you canโt change the character code, but you can display it by changing the configuration.
Open the configuration file and add the following content to the user tab.
// Display file encoding in status bar
"show_encoding": true,
// Display line endings in status bar
"show_line_endings": true,
This will add character code settings to the bottom right of the main screen.
Optional Configuration
Below are examples of particularly useful configuration items.
Highlight Unsaved Tabs
Configuration to display unsaved files clearly in tabs.
// Display unsaved tabs in orange
"highlight_modified_tabs": true,
Useful Shortcut Keys
A list of shortcut keys for daily use.
Multi-select
You can select multiple identical strings simultaneously and edit them all at once.
How to use:
- Select the string you want to edit
- Press
Ctrl + D
Example: Change all โhogeโ in the same file to โfugaโ.
Rectangle Selection
Useful when selecting specific parts of text across multiple lines. For example, when you want to insert โ#โ at the beginning of multiple lines to comment them out.
Ctrl + Alt + โ or โ
Insert Characters Before and After Words
A function to automatically insert characters before and after selected words. For example, if you select hoge and input ", it becomes "hoge".
Split Screen
You can split the screen to increase work efficiency.
Alt + Shift + 2, 3, 4
Quickly Access Target IDs and Files
You can quickly access specified IDs and files.
Ctrl + R
Open Command Palette
You can open the command palette and search for available commands.
Ctrl + Shift + P
Shortcut Key List
For more shortcut keys, please refer to the official key list below.