I love sublime but when I first started using it most of the online documentation and tutorials suck ass. I'm planning on making a pretty looking, single page cheat sheet that is simple and easy to read. Sublime Text is another promising coding editor for Mac OS. Initially, many coders and other users are interested in the flexible interface settings and quick change of layouts during a coding process. Sublime Text 3 cheat sheet of all shortcuts and commands.
Active3 years, 5 months ago
Both of those sites suggest that Ctrl + Shift + Up/Down will add another cursor. But my Mac OS X seems to have some behavior already set to that. It zooms all of the windows out or in depending on whether I use up or down.
Does anyone know a) how to disable this OS X functionality? or b) how to change the key binding for this in Sublime's 'Default (OSX).sublime-keymap -User' file?
Happy trails!-Pete
peoplespetepeoplespete8121 gold badge8 silver badges14 bronze badges
4 Answers
https://brownmylife225.weebly.com/blog/nice-text-editor-for-mac. I figured it out after reading this: https://discussions.apple.com/thread/3331893?tstart=0
Basically, I just had to disable 'Mission Control' and 'Application Windows' in System Preferences >> Keyboard >> Shortcuts.
peoplespetepeoplespete8121 gold badge8 silver badges14 bronze badges
Add these lines to Key Bindings-User in Sublime settings
{ 'keys': ['ctrl+alt+up'], 'command': 'select_lines', 'args': {'forward': false} }, Insert circle around text in word 15 for mac 2017.
{ 'keys': ['ctrl+alt+down'], 'command': 'select_lines', 'args': {'forward': true} }
and you are good to go without changing anything in the preferences. now multicursors will work with
ctrl+alt(option)+up/down
Ajay ChoudharyAjay Choudhary
You can use additional fn key to get pretty much the same key bindings usability: fn + up = pageup on mac.
I found it quite usable for myself and there is no need to disable 'Mission Control' and 'Application Windows' in that case.
UdjinM6UdjinM6
Another option is to use Karabiner (https://pqrs.org/osx/karabiner). It has a set of predefined examples but adding your own commands is a piece of cake. Easy to install and to use and to customize. Also available on github: https://github.com/tekezo/Karabiner.
HarmHarm
Not the answer you're looking for? Browse other questions tagged macossublimetext2 or ask your own question.
Cheat Sheets is a plugin for quickly accessing cheat sheets in the Sublime Text editor. Typing the key sequence will open a cheat sheet in a new tab. If the cheat sheet is already open, it will activate that tab.
Installation
Package Control
The Cheat Sheets package is available in Package Control. Once Package Control is installed, install Cheat Sheets by opening the command palette
Ctrl + Shft + P
, type Install, and select Package Control: Install Package, then type and select Cheat Sheets.Clone from Github
Available Cheat Sheets
At the moment most cheat sheets are under heavy development. Feel free to submit your own sheets or edits. Be aware that edits to the defaults sheets will be erased by an update. If you want to safely edit a sheet, copy it from
$ST/Packages/Cheat Sheets/cheat-sheets
to $ST/Packages/User/cheat-sheets
. If both folders have sheets with the same $filename then the one in $ST/User/cheat-sheets
will be opened.![For For](/uploads/1/3/3/8/133889847/362773980.png)
Cheat Sheets can be opened either from the menu:
Tools > Cheat Sheets
, the command palette by pressing Ctrl + Shft + P
and typing Cheat Sheet, or from the following keyboard shortcuts:Command | Keyboard Shortcut |
---|---|
Bash * | Ctrl + Shft + C, S, H |
Git * | Ctrl + Shft + C, G, I, T |
Github Flavored Markdown * | Ctrl + Shft + C, G, F, M |
Go * | Ctrl + Shft + C, G, O |
KDE * | Ctrl + Shft + C, K, D, E |
Regular Expressions | Ctrl + Shft + C, R, X |
Sublime Text * | Ctrl + Shft + C, S, T |
* Incomplete sheet. |
How to add your own Cheat Sheets
![Editor Editor](https://i0.wp.com/softwarespatch.com/wp-content/uploads/2017/04/Sublime-Text-3-Build-3126-Patch-Serial-Number-Download.png?resize=500%2C414)
- Add your cheat sheet to
$ST/Packages/User/cheat-sheets/$filename.cheatsheet
. - Add a keyboard shortcut by adding the following line to
$ST/Packages/User/Default ($OS).sublime-keymap
and change the keys and $filename: - Add a menu entry by adding the following to
$ST/Packages/User/Main.sublime-menu
and change both instances of $filename: - Add a palette item to
$ST/Packages/User/Default.sublime-commands
and change both instances of $filename.To add multiple cheat sheets copy and paste just the keys or caption line and add a comma in between each entry to all the above files. - Highlighting follows this format:Where t means tab and s means space.
- If there's a problem, you can use the cheat_sheet_tester command. The tester command will print in the console the file paths where it expected to find your $filename. The console can be opened with
Ctrl + `
orView > Show Console
.The tester command can be run directly in the console with:The tester command can also be run as a keyboard shortcut with:
External Programs
If you want to have access to your cheat sheets outside of Sublime Text you can use KLook on KDE, Gloobus on Gnome, Quick Look on OSX, or maComfort on Windows. However none of the these have syntax highlighting, and there's always the
subl
command to quickly open a file in Sublime Text.Credits
Sublime Text Editor 3 Cheat Sheet For Mac Os X
This plugin is based off of Steve Hammond's Cheater plugin.