background preloader

Sublime Text 2 Tips and Tricks (Updated)

Sublime Text 2 Tips and Tricks (Updated)
Sublime Text 2 is one of the fastest and most incredible code editors to be released in a long time! With a community and plugin ecosystem as passionate as this one, it just might be impossible for any other editor to catch up. I'll show you my favorite tips and tricks today. Sublime Text 2 is currently available for all major platforms: OS X, Linux and Windows. 1 - Bleeding Edge Versions Sublime is in active development. Download a dev build of Sublime 2 here. 2 - Get a Better Icon Update: here is a better icon. In its defense, Sublime Text 2 is still in a beta state. To integrate it, you need to replace the existing "Sublime Text 2.icns" file with this new one. Please take note of the fact that, if you're using the frequently updated development version of Sublime Text, with each update, the icon will be removed. 3 - Access the Command Palette Similar to TextMate, we can use Sublime's command palette by accessing the Tools menu, or by pressing Shift + Command + P, on the Mac. 8 - Alignment Related:  Sublime text 2

mrmartineau/SublimeTextSetup Sublime Text: The text editor you'll fall in love with Sublime Text 2 pour le dev web : config, trucs et astuces Pourquoi cet article ? J'écris cet article parce qu'autant ST peut être extrêmement puissant et confortable, autant son installation par défaut (ST « nu », si vous voulez) n'en laisse pas paraître grand chose… La sidebar est totalement dénuée d'options utiles au clic droit, on n'a pas de transpose, etc. Et même ses fonctions natives puissantes, comme le Go To Anything, la Command Palette ou les Layouts, sont souvent bien peu utilisés, ou sous-employés. L'idée est donc de mettre en place ici une config « musclée », et de vous fournir également des liens vers des ressources externes de qualité sur ST lui-même, au travers notamment de screencasts, qui constituent toujours une des meilleures approches pour découvrir un éditeur, car l'aspect visuel et animé est important ici. À partir de zéro Note importante : si vous avez déjà ST d'installé et de personnalisé, il peut être préférable de sauvegarder vos réglages et paquets. Installation Vous pouvez télécharger ST depuis son site officiel.

Sublime Text 2: Tips for moving over I’m a long time Coda user. A few months ago I, like everyone else, decided to switch over to vim. I really liked Vim but just couldn’t get the hang of it for whatever reason. 1. If you do a lot of work in bash, its helpful to open up a file or entire folder in your editor right from the command line. To Install: Run the following line in your terminal.sudo ln -s "/Applications/Sublime Text 2.app/Contents/SharedSupport/bin/subl" /bin/subl This will then give you access to the bash command subl with a number of arguments. The most basic usage is to open the current folder in Sublime Text 2. subl -ab tutorial.html opens the file tutorial.html in the current window but keeps terminal in focus. 2. This was one of the biggest annoyances for me when switching over from coda. HitCommand + Shift + P to bring up the sublime launcher type “user global settings and hit enter. "open_files_in_new_window": false 3. One feature that Coda has just slam dunked is their code hinting. 4. 5. Thats is!

☠☣ - How to Learn Vim Learning vim can be a bit daunting at first. I know that I spun my wheels on efficiently learning vim for quite some time. I was TRYING hard to learn new things but I didn’t seem to be leveling up in the ways I wanted to. This was mainly due to one fatal flaw. I kept trying to use google. What I found was an amazing set of instructions on how to use vim. If you are on a mobile phone or don’t want to brave navigating around the documentation in vim just yet check out these links below. You’ll notice this list starts at chapter 2. Vim Help Docs The first steps in Vim Moving around Making small changes Set your settings Editing more than one file Splitting windows Using the GUI Making big changes Clever tricks Editing Effectively Typing command-line commands quickly Go away and come back Finding the file to edit Editing other files Inserting quickly Editing formatted text Repeating Search commands and patterns Folding Moving through programs Editing programs Exploiting the GUI The undo tree Using help even more

Sublime Text 2 more sublime with a drop of Dropbox · andrew.hedges.name January 19, 2012, 9:19 pm · 12 comments · Filed under: Coda, Web Development Among its many great features, one of the cool things about ST2 is the licensing terms. Buy a license and you can use it on as many machines as you like. In this modern age, this is as it should be. ST2 is great out of the, uh, download (we need a new metaphor here, people), but packages go a long way towards extending its functionality. Problem is, once you start adding a bunch of packages (the first of which should be Package Control), it becomes a nuisance to keep them in sync across installations on multiple machines. Enter Dropbox. In case you live under a rock, Dropbox is incredibly simple, reliable software that syncs a folder or folders between multiple computers. The following steps (which are for OS X, please add how to do this on Windows & Linux if you know how!) When you’re done, you should end up with something like this. That should do it. For good measure, here are the packages I have installed.

Sublime Text 2 for Ruby Matz has said he wants Ruby to be the “80% language”, the ideal tool for 80% of software development. After switching from TextMate to Sublime Text 2 (ST2) a few months ago, I believe it’s the “80% editor”. You should switch to it, especially if you’re using TextMate. Why Sublime Text 2? Speed. Getting Started I’ve helped a handful of new ST2 users get setup over the past few months. Install the subl command line tool. Leveling Up with Custom Commands Sublime Text 2 makes it dead simple to write your own commands and key bindings in Python. Copy the path of the current file to the clipboard. New key bindings are installed by dropping Python class files in ~/Library/Application Support/Sublime Text 2/Packages/User and then binding them from Default (OSX).sublime-keymap in the same directory. Neil Sarkar, my colleague, wrote most of the code for all of the above within a few weeks of switching to ST2. Running RSpec from Sublime Text 2 This is my favorite part of my Sublime Text 2 config.

7 Ways to Level Up Your Sublime Text Editing 1) Packages. Control them. Installing PackageControl is the first step on many Sublime Text 2 (ST2) blog posts around the web. Rightly so. It opens up a new world of functionality and makes managing that world a piece o’ cake. Once you have it installed, you’re a quick ⇧⌘P and a “pack” from everything you need. "Upgrade/Overwrite All Packages" is super cool 2) Packages. Even with PackageControl, installing and updating packages on each of your machines is more work than it needs to be. Instead of doing that, just move the Packages directory to your Dropbox or Google Drive and symlink it so ST2 can use it. On OS X with Dropbox it’s as easy as this: On your first system: mv ~/Library/Application\ Support/Sublime\ Text\ 2/Packages \ ~/Dropbox/appsync/Sublime\ Text\ 2/Packagesln -s ~/Dropbox/appsync/Sublime\ Text\ 2/Packages \ ~/Library/Application\ Support/Sublime\ Text\ 2/Packages On subsequent systems:\ 3) Speaking of preferences… IN ST2, they’re just a boolean flag in your preferences. Fin

Related: