TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Setting up Sublime Text 2

178 pointsby maccmanabout 12 years ago

24 comments

lookiabout 12 years ago
"The default website, icon, and theme are ugly to say the least" I can't be the only one who completely, utterly disagrees with this? I absolutely love the default theme and I think the icon looks great (much better than the alternative provided). That being said, I don't want to start a whole pointless discussion about taste here, it just kind of bothered me to read something like that in a blog post that talks about setting up a text editor.
评论 #5520755 未加载
评论 #5520939 未加载
评论 #5521515 未加载
评论 #5523589 未加载
评论 #5520911 未加载
评论 #5521638 未加载
评论 #5524486 未加载
评论 #5522049 未加载
snotrocketsabout 12 years ago
I tried to like Sublime, I really did. Bought a license and used it for four months, before going back to Emacs.<p>Sublime is nice, and easy to extend, but it only extends so far, while Emacs is infinitely extensible.<p>You can practically live in Emacs[1]; some things I wanted to do in Emacs were hard to pull off, but I'm yet to find something it can't do. And it does so for years.<p>Fashionable editors come and go, but Emacs forever stands; and if there is one thing I don't think I'll be able to ever do again, is learn another set of editor shortcuts. Those I used were drilled there ~10 years ago, and I don't think they'll ever come out.<p>Also, author seems to take great deal about changing the editor theme and icon. Why should you ever care about that, outside a screenshot contest?<p>Editor should look good by rendering a nice font at a size you find comfortable, highlighted in colors you find easy on the eyes. If you look at the chrome, well, you're not spending enough effort editing.<p>[1] I'm not the one to start wars. vi might be just as good, but I'm not going to learn it this side of the river Styx.
评论 #5521896 未加载
评论 #5522819 未加载
评论 #5521851 未加载
评论 #5521632 未加载
评论 #5521871 未加载
评论 #5522319 未加载
andrethegiantabout 12 years ago
One setting I find invaluable is to use Paste and Indent for ⌘V instead of the standard Paste. This adjusts your indentation to automatically match the context it's pasted in.<p>To do this, put the following in your Key Bindings - User file:<p><pre><code> [ { "keys": ["super+v"], "command": "paste_and_indent" }, { "keys": ["super+shift+v"], "command": "paste" } ]</code></pre>
评论 #5521924 未加载
评论 #5523394 未加载
评论 #5522907 未加载
spacesuitabout 12 years ago
A few more Sublime Text plugins worth checking out:<p>AdvancedNewFile -- easy file/directory creation<p>Alignment -- shortcut for instant alignment<p>Emmet -- essential for HTML/CSS<p>GitGutter -- see diff marks in gutter<p>Origami -- additional shortcuts for split panes<p>VintageEx -- emulation of Vim's Ex-mode<p>The Vim emulation isn't one-to-one, but it's pretty good with Vintage mode enabled and the VintageEx plugin installed.
haugetabout 12 years ago
This helped me a lot when I got started with Sublime <a href="http://net.tutsplus.com/articles/news/perfect-workflow-in-sublime-text-free-course" rel="nofollow">http://net.tutsplus.com/articles/news/perfect-workflow-in-su...</a> Good intro to basic configuration, shortcuts &#38; vintage mode
评论 #5520841 未加载
ricardobeatabout 12 years ago
You shouldn't set "trim_trailing_white_space_on_save": true unless you work alone, otherwise you're going to have random whitespace changes polluting your diffs.
评论 #5520157 未加载
评论 #5521687 未加载
评论 #5520697 未加载
评论 #5521171 未加载
mtp0101about 12 years ago
I find it odd that Sublime is so widely loved. It seems like a way-station between Notepad and Vim/Emacs. The extensions are nice, and the GUI is easy on the eyes, but it seems that most of my peers outgrew their Sublime Text/Notepad++/Textmate stage by the time they completed their first year of undergrad. I would hate to be stuck in the slow world of Sublime Text limbo as a result of being too lazy to learn and customize Vim/Emacs.
评论 #5521592 未加载
评论 #5523225 未加载
评论 #5521724 未加载
评论 #5521422 未加载
评论 #5521549 未加载
评论 #5521625 未加载
评论 #5521557 未加载
alexshenoyabout 12 years ago
I actually like that the preferences are stored in JSON. This is one of the features that pulled me in to Sublime Text.
评论 #5521877 未加载
评论 #5520709 未加载
评论 #5521634 未加载
评论 #5520580 未加载
senkoabout 12 years ago
If you use ST2 for working on Django projects, try <a href="https://github.com/dobarkod/DjangoNoseTestRunner" rel="nofollow">https://github.com/dobarkod/DjangoNoseTestRunner</a> (installable also via Package Control) for running only the test under cursor. It's probably saved us hours of (cumulative) time already.
itsbitsabout 12 years ago
Another awesome plugin in ST2 is WebInspector <a href="https://github.com/sokolovstas/SublimeWebInspector" rel="nofollow">https://github.com/sokolovstas/SublimeWebInspector</a> for Web Devs
zenoconabout 12 years ago
The TrailingSpaces plugin isn't necessary. ST2 has an option in the default preferences to trim whitespace at the end of the line - just enable it. Not to come down too hard on the article or anything, but there are many other, far better resources for setting up and learning how to be productive in ST2. This book is good <a href="https://leanpub.com/sublime-productivity" rel="nofollow">https://leanpub.com/sublime-productivity</a> (I have no affiliation with the book.)
评论 #5525239 未加载
codexonabout 12 years ago
I was looking at Sublime Text for Go, and apparently the autocomplete box cannot be expanded so it is unable to display function arguments.<p><a href="https://github.com/DisposaBoy/GoSublime/issues/212" rel="nofollow">https://github.com/DisposaBoy/GoSublime/issues/212</a><p>Probably an issue for other languages as well.
taudeabout 12 years ago
What's the easiest way to keep my Sublime configuration synchronized between machines? I've found that I sometimes have some plugins on one machine, and not another. It would be nice to be able to pull some file/files from GIT or something to keep configuration synced.
评论 #5538318 未加载
评论 #5528072 未加载
decholsabout 12 years ago
For you python Sublime users: <a href="http://dechols.com/post/40402860395/sublime-text-2-python-development-environment-in" rel="nofollow">http://dechols.com/post/40402860395/sublime-text-2-python-de...</a>
sspiffabout 12 years ago
&#62; The default website, icon, and theme are ugly to say the least<p>I find the default icon better looking than the one the author is using, so I guess this is just a matter of taste. Same goes with the color scheme.
kiernanabout 12 years ago
I do most of my editing on remote machines (both at work and at home) and haven't really been able to find a setup that works smoothly for this.<p>Is everyone else developing <i>everything</i> on their local machines?
评论 #5524525 未加载
评论 #5523547 未加载
评论 #5524939 未加载
Klunyabout 12 years ago
I tried switching to the Soda theme as directed, didn't like it. And I'm dumb, and forgot to back up the original prefs file. Could someone remind me what the default theme is called?
评论 #5522337 未加载
emcabout 12 years ago
Also for anyone that uses both Alfred (2.0) and sublime check out <a href="https://github.com/Humanoidism/SublimeIt" rel="nofollow">https://github.com/Humanoidism/SublimeIt</a>
websitescenesabout 12 years ago
Sublime 2 rules! Simple, great shortcuts and just plain nice to look at. They even let you use it for free. I bought it shortly after trying it out.
Void_about 12 years ago
More icon replacements: <a href="http://dribbble.com/search?q=sublime" rel="nofollow">http://dribbble.com/search?q=sublime</a>
rydgelabout 12 years ago
Am I the only one to find Python syntax highlighting pretty poor? Is there any tip, color schemes or plugins to improve this?
nshankarabout 12 years ago
Get me block level (vit, cit ...) commands in ST2 and I will switch. They are done very well in Vim.
评论 #5524483 未加载
panabeeabout 12 years ago
what plugin do people use for highlighting brackets and parentheses? the default underline mode is faint and not very helpful. i have heard of one or two, but i'm curious to hear what people on HN use. thanks!
评论 #5521100 未加载
ChikkaChiChiabout 12 years ago
I can't believe this many people care about how the icon looks.