Sublime Editor

12 Most-Wanted Sublime Text Tips and Tricks

Column Selection

Column Selection

Windows
Right Mouse Button + Shift
OR: Middle Mouse Button

Add to selection: Ctrl
Subtract from selection: Alt

Linux
Right Mouse Button + Shift

Add to selection: Ctrl
Subtract from selection: Alt

Whitespace

How to show whitespace in Sublime Text

{
    "draw_white_space": "all",
    "translate_tabs_to_spaces": true
}

Find all / Replace all

Find/Replace panel in Sublime Text disappears after Replace All
“replace all” closes the replace-bar
Don’t hide find/replace panels
How to keep the replace box remain after a replace all

Original:
	{ "keys": ["alt+enter"], "command": "find_all", "args": {"close_panel": true},
		 "context": [{"key": "panel", "operand": "find"}, {"key": "panel_has_focus"}]
	},
	{ "keys": ["alt+enter"], "command": "find_all", "args": {"close_panel": true},
		"context": [{"key": "panel", "operand": "replace"}, {"key": "panel_has_focus"}]
	},
	{ "keys": ["ctrl+alt+enter"], "command": "replace_all", "args": {"close_panel": true},
		 "context": [{"key": "panel", "operand": "replace"}, {"key": "panel_has_focus"}]
	},

Modified:
	{ "keys": ["alt+enter"], "command": "find_all", "args": {"close_panel": false},
		 "context": [{"key": "panel", "operand": "find"}, {"key": "panel_has_focus"}]
	},
	{ "keys": ["alt+enter"], "command": "find_all", "args": {"close_panel": false},
		"context": [{"key": "panel", "operand": "replace"}, {"key": "panel_has_focus"}]
	},
	{ "keys": ["ctrl+alt+enter"], "command": "replace_all", "args": {"close_panel": false},
		 "context": [{"key": "panel", "operand": "replace"}, {"key": "panel_has_focus"}]
	},

Regex

Search and Replace – Regular Expressions

Capture Group

Regular expressions and Sublime Text
Regular expression search replace in Sublime Text 2
Capturing Groups and Backreferences

Leave a Reply

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