Hello Sublime Text, you are my favorite editor for coding. Love, Indro.
To install the terminal command subl
, create a symlink in your bin-folder:
sudo ln -s "/Applications/Sublime Text.app/Contents/SharedSupport/bin/subl" /usr/local/bin/subl
Here are my custom key-bindings. I use MoveText1, so I can use ctrl + command
and cursor keys to shift selected text horizontally or vertically.
[
{ "keys": ["ctrl+command+left"], "command": "move_text_left" },
{ "keys": ["ctrl+command+right"], "command": "move_text_right" },
{ "keys": ["ctrl+command+up"], "command": "move_text_up" },
{ "keys": ["ctrl+command+down"], "command": "move_text_down" }
]
And this is my current config:
{
"font_face": "Input",
"font_size": 16,
"auto_complete_with_fields": true,
"detect_slow_plugins": false,
"draw_white_space": ["all"],
"draw_unicode_white_space": "all",
"highlight_line": true,
"ignored_packages": ["Vintage"],
"line_padding_bottom": 1,
"line_padding_top": 1,
"mini_diff": false,
"caret_style": "phase",
"save_on_focus_lost": true,
"show_full_path": true,
"show_git_status": true,
"sidebar_size_12": true,
"status_bar_brighter": true,
"tab_size": 2,
"tabs_medium": true,
"tabs_padding_small": true,
"tabs_small": true,
"translate_tabs_to_spaces": true,
"trim_trailing_white_space_on_save": true,
"ensure_newline_at_eof_on_save": true,
"word_wrap": true,
"wrap_width": 90,
"word_separators": ":./\\()\"'-,.;<>~!@#$%^&*|+=[]{}`~?",
"update_check": true,
"theme": "Alpenglow.sublime-theme",
"color_scheme": "Packages/Theme - Alpenglow/Alpenglow.tmTheme",
}
Sublime Text allows fast editing, including creating multiple cursors. For selections, I use the following shortcuts often:
# select all occurrences of current selection
ctrl + command + G
# add next occurrence (adding a new cursor for each selection)
command + D
# redo last selected occurrence
command + U
# split current selection into many selections (adding a new cursor for each)
command + shift + L