

You’ll have to restart Sublime Text for this one.
#Sublime text 3 auto indent code
If you like to code fullscreen yet still use your other monitors, go ahead and add the following to your preferences file: " use_simple_full_screen " : true You have probably realized that apple has really dropped the ball when using fullscreen, rendering the rest of multiple monitors into nothing but a linen backdrop.
#Sublime text 3 auto indent mac osx
This one is only for those running Sublime Text on Mac OSX 10.7 or 10.8 with multiple monitors.

Making it visually obvious cuts down on mistakes like this. This is a small, yet common, problem that we run into. I’m an instructor at HackerYou where we use Sublime Text extensively. I found this tip: Coderwall Auto-indenting on Sublime Text 3 (Example) A protip by zonetti about sublime, productivity, and shortcut. I want a command that auto-indenting in python code just like 'CTRL + I ' in QT. It looks fantastic with my cobalt2 theme for Sublime Text I’m beginning to use sublime text 3 with python code. + 2 Switch to 2 column layout Alt + Shft + 3 Switch to 3 column layout Alt. Make it a little more obvious when you haven’t saved changes to a document by turning on the following: " highlight_modified_tabs " : true The exact styling of your modified tabs will vary depending on your theme. Ctrl + C Copy selection or whole line Ctrl + V Paste and indent Ctrl + X Cut. When making a change in sublime text, by default it changes the × to a circle of the same colour.

Paste this little snippet into your key bindings file located at Preferences → Key Bindings - User 4. Like that one? I loved it so I remapped my key combos to paste and indent by default on cmd + v This will automatically indent your code block. If you have ever pulled a piece of code off the Internet and pasted it into your application, you’ll no doubt feel the pain of having it paste in all weird and have to go in and fix it.Įasy fix to this, instead of pressing the normal cmd + v to paste, simply switch to using cmd + shift + v to paste. One of the best tricks I’ve ever learned in Sublime Text is paste and indent. For example, I put the above in CSS.sublime-settings and LESS.sublime-settings 2. No problem, only enable it for the languages you want - simply place the above setting in /Packages/User/.sublime-settings. If you work with other watch scripts that break and restart a process upon save (like supervisor or forever), this might not be ideal for you. Put this in your settings file at Preferences → Settings - User " save_on_focus_lost " : true I find this is super handy when working with extensions like Live Reload or compiled languages like coffeescript that watch for file saves. Instead of saving on every tiny little change, tell Sublime to automatically save your files when you tab away from the editor. Save on focus lostĬhronic ⌘+S’er? This tip is particularly helpful when working with CSS/LESS/SASS and switching between your editor and browser. The last post was so well received that I've decided to post a few more of my favourite tips. I'm working hard on my Sublime Text Book and have received fantastic response for everything so far - very motivating.
