Sublime Text is a powerful text editor beloved by developers. Let's explore its default controls and how to customize them.
Default Keyboard and Mouse Controls
Sublime Text offers a wide array of keyboard shortcuts and mouse controls for efficient navigation and editing:
File Navigation
- Ctrl+P: Quick-open files
- Ctrl+G: Go to line
- Ctrl+R: Go to symbol
Editing
- Ctrl+D: Select word (repeat to select next occurrence)
- Ctrl+L: Select line
- Ctrl+Shift+K: Delete line
- Ctrl+KU: Convert to uppercase
- Ctrl+KL: Convert to lowercase
Find and Replace
- Ctrl+F: Find
- Ctrl+H: Replace
- Ctrl+Shift+F: Find in files
Mouse Controls
Action | Result |
---|---|
Right-click | Context menu |
Middle-click | Column selection |
Ctrl+Left-click | Multi-cursor selection |
Customizing Controls
To personalize your Sublime Text experience, follow these steps to access and modify control settings:
- Open Sublime Text.
- Click on "Preferences" in the top menu.
- Select "Key Bindings" from the dropdown.
- Two files will open side-by-side:
- Left: Default keybindings (read-only).
- Right: User keybindings (editable).
- To modify a keybinding:
- Find the desired command in the default file.
- Copy the entire line to the user file.
- Modify the key combination as needed.
- Save the user file to apply changes.
Example of a custom keybinding:
{ "keys": ["ctrl+shift+c"], "command": "copy_path" }
This binds the "copy_path" command to Ctrl+Shift+C.
By mastering these controls and learning to customize them, you can significantly enhance your productivity in Sublime Text. Experiment with different combinations to find what works best for your workflow.
Comments
0 comments
Please sign in to leave a comment.