Something the article misses: Sublime Text 2 already comes with a command line front end called "subl". Just copy it in your favorite bin/ directory and you can open your files with it from any shell.
Always wondering why the version '2' is emphasised heavily. Never heard of Sublime Text when it is version 1. The version number is part of the app binary file name. It is the only OS X app in my Mac that has the app name together with version number on the menu bar. Nothing wrong with this "unconventional", just that it will break a little thing when Sublime Text 3 is released. For example to change command prompt linking as in "ln -s /Applications/Sublime\ Text\ 2.app/Contents/SharedSupport/bin/subl /usr/local/bin/sublime".
Another useful tip for navigation - when using the fuzzy search, you can start typing a filename to jump to that file, then with that still in the search box, hit # and start typing a keyword to jump to in that file.
So if you wanted to find something with the class btn_order in index.aspx, in Windows you'd hit CTRL-P and type "index#btn", hit enter, and there you are. You can of course scroll up/down through the available files matching the filter before you hit # -- the keyword search applies to the currently selected file.
I'm not a huge fan of video sources when I could just look at images/read text and get it done faster, but these do offer some pretty good stuff. I was fond of him giving me the idea to use the Gist plugin, creating a new account, and have a great way to manage snippets.
Sublime team by default need to advertise Packages and just how much you can customize the thing. You'd be amazed just how powerful this thing can be - once you get the hang of it, the shortcuts and some basic packages.
My favorite ones are Zen Coding (now deprecared in favor of Emmet) and SublimeERB when working with ERB - the front-end dev in me cries of joy when using them :-)
> FileDiffs - This can be a really useful tool for diffing files. [...]
This is something I've been looking for. I had to use an external diff tool or vimdiff, but this might change things quite a bit.
The other thing that would be a great addition to ST2 (if not existing already) would be a search by symbol in all project files. Currently Cmd+R is great for navigating to a symbol in the current file. Extending this to a whole project would be awesome.
I'd suggest going through the default settings file to see what options there are to change. It's pretty darn configurable.
I'd also like to suggest the plugins Bracket Highlighter and Emmet (previously Zen Coding). I also use Package Manager, Sublime Linter, and FileDiffs as mentioned in the article.
This is just my opinion, but I think detect_indentation should always be turned on. The reason being that having mixed indentation in a file is worse than having the "wrong" indentation.
You would version the Preferences / Settings - User file, which overrides defaults in the Preferences / Settings - Default. I found a decent overview of how to store these in drop box with symlinks, but also describes where these are stored - http://wheels.onebuttonapps.net/2012/04/use-dropbox-to-store...
If you're using Sublime I'd highly recommend writing some Snippets, there's plenty you can write and it gets you digging into Sublime's docs. Helped me get used to Sublime a lot more.
This post reminded me that 90% of the developers I work with don't set their editor up properly. I'm constantly finding Windows line endings and trailing whitespace. I wrote this (really short) guide that I send to new developers, but imo editors should come configured like this out of the box. http://wildlyinaccurate.com/setting-up-your-editor
Here's my (rather opinionated) setup. I'm quite visually impaired, so getting my editor just right so I can code comfortably is important. Most of my changes have to do with making things easier to see.
For those who sometimes prefer straight GUI, you can just drag the folder into Sublime Text (or Textmate) and it will open it in the sidebar (probably obvious to some, but I did not know to do it until I saw somebody else do it).
Also, another thing I have grown really attached to:
Command-Option [1,2,3,4] to open up multiple views within one window, good for viewing several files at once.
I use it to write Haskell. The syntax highlighting screws up the first line of multiline record declarations. Out of the box, it can't run a Hoogle search or launch GHCI like TextMate did. It's definitely not a fully-featured Haskell IDE, but it's a usable basic editor. Depending on what you're used to, it may or not be adequate. I switched because I liked the default color theme better (... I mean... because TextMate was being abandoned).
This is the real lesson of this article:
"As a craftsmen it is important to understand and use our tools properly. Just as a painter needs to use the best paint and brushes - and understand how to use them - a developer should understand and use the best software tools available. For me, Sublime Text is the highest-quality brush available."
The biggest win I've had from configuring Sublime Text is in setting up build systems. Specifically, configuring F4/shift-F4 (skip to next/previous error). The build system integration is rudimentary (and I hope that's a focus for Sublime Text 3) but "skip to next error" is all you really need to be productive.
[+] [-] eta_carinae|13 years ago|reply
[+] [-] pygy_|13 years ago|reply
You won't have to copy each update.
thus:[+] [-] jemeshsu|13 years ago|reply
[+] [-] molecule|13 years ago|reply
Sublime ships w/ a command-line executable:
[+] [-] ssorallen|13 years ago|reply
[+] [-] subpixel|13 years ago|reply
[+] [-] knotty66|13 years ago|reply
[+] [-] ryanpetrich|13 years ago|reply
[+] [-] Foxboron|13 years ago|reply
[+] [-] jurre|13 years ago|reply
[+] [-] shade|13 years ago|reply
So if you wanted to find something with the class btn_order in index.aspx, in Windows you'd hit CTRL-P and type "index#btn", hit enter, and there you are. You can of course scroll up/down through the available files matching the filter before you hit # -- the keyword search applies to the currently selected file.
[+] [-] heelhook|13 years ago|reply
[+] [-] grimgrin|13 years ago|reply
http://net.tutsplus.com/tutorials/tools-and-tips/essential-s...
I'm not a huge fan of video sources when I could just look at images/read text and get it done faster, but these do offer some pretty good stuff. I was fond of him giving me the idea to use the Gist plugin, creating a new account, and have a great way to manage snippets.
http://net.tutsplus.com/articles/news/perfect-workflow-in-su...
[+] [-] doktrin|13 years ago|reply
[+] [-] ivanbernat|13 years ago|reply
My favorite ones are Zen Coding (now deprecared in favor of Emmet) and SublimeERB when working with ERB - the front-end dev in me cries of joy when using them :-)
[+] [-] decad|13 years ago|reply
[+] [-] alexpopescu|13 years ago|reply
This is something I've been looking for. I had to use an external diff tool or vimdiff, but this might change things quite a bit.
The other thing that would be a great addition to ST2 (if not existing already) would be a search by symbol in all project files. Currently Cmd+R is great for navigating to a symbol in the current file. Extending this to a whole project would be awesome.
[+] [-] SquareWheel|13 years ago|reply
I'd also like to suggest the plugins Bracket Highlighter and Emmet (previously Zen Coding). I also use Package Manager, Sublime Linter, and FileDiffs as mentioned in the article.
[+] [-] wldlyinaccurate|13 years ago|reply
[+] [-] manojlds|13 years ago|reply
[+] [-] shoebappa|13 years ago|reply
[+] [-] heartbreak|13 years ago|reply
[+] [-] yen223|13 years ago|reply
Also I would hardly call .vimrc files "simple".
[+] [-] scq|13 years ago|reply
[+] [-] hayksaakian|13 years ago|reply
[+] [-] feniv|13 years ago|reply
[+] [-] natrius|13 years ago|reply
http://www.python.org/dev/peps/pep-0008/#indentation
[+] [-] nicholassmith|13 years ago|reply
[+] [-] wldlyinaccurate|13 years ago|reply
[+] [-] javan|13 years ago|reply
[+] [-] kellishaver|13 years ago|reply
http://kellishaver.tumblr.com/post/29158801106/sublime-text-...
[+] [-] gavanwoolery|13 years ago|reply
Also, another thing I have grown really attached to:
Command-Option [1,2,3,4] to open up multiple views within one window, good for viewing several files at once.
[+] [-] batgaijin|13 years ago|reply
[+] [-] shriphani|13 years ago|reply
I have since decided to use Sublime Text for Python, LaTeX, C, C++ (it really shines there) and Emacs for Racket and Clojure (I don't use it so much).
[+] [-] jewbacca|13 years ago|reply
[+] [-] jfb|13 years ago|reply
[+] [-] tylermauthe|13 years ago|reply
Great stuff, thanks!
[+] [-] modeless|13 years ago|reply