5 ms·
I just tried Sublime 2 and I must admit I don't "get it." It seems like a basic editor with several features which Notepad++ already had. Specifically for prog
by UnoriginalGuy 14y ago
I just tried Sublime 2 and I must admit I don't "get it." It seems like a basic editor with several features which Notepad++ already had.
Specifically for programming I cannot see why you would use this as opposed to something like Visual Studio with its context aware auto-complete (massive productivity increase).
But then again I also don't get why someone would use Vim or Emacs when you have GUI based tools available (even freely). Even for non-Windows programming Eclipse exists and has a decent (if slow) context aware auto-complete for many languages.
The only justification I've ever heard for people's continued use of tools like this boil down to either "I know the shortcut keys" or "I don't have to use the mouse."
Which to me is odd within its self as very little of my programming efficiency is lost mousing around, and a lot more lost having to jump around code blocks because auto-complete didn't magically know what an object's members were...
- de90 14y agoFor me the biggest reason is speed. I use visual studio at work and love it, but when I am at home writing javascript. All those extra features just make it such a slow experience.
- simonsarris 14y agoI used sublime text and my interns all use visual studio. I love both, but I can give a few points: * No CTRL+D duplicate line in VS * Can't use middle-mouse in VS to select multiple columns * Can't place your cursor in many multiple locations at once in VS * You can use ALT+DRAG to select columns in VS but there's no way to put a carat at the end of each of a bunch of lines of varying sizes * CTRL+J to append the next line to the current one, removing all whitespace. I feel as if this has saved me a year of life. Those five alone are extremely useful when writing JavaScript and HTML. * The autocomplete in VS does not "learn" like the sublime text one does. * No good incremental search in VS (might have changed on the very newest version?) * CTRL+B opens the current HTML page being edited in my browser on sublime text. There's probably an equivalent in VS though * highlighting a string of text highlights all similar ones in sublime text. In VS for C# it sorta does this if the string of text is a token * The ability to sort and shuffle lines in sublime text can be useful at times, though this is usually when preparing data and not when writing code.
- kingatomic 14y agoI also much prefer ST2's regex grammar for find/replace.. not only do you have to enable regex find/replace in VS, it uses a clunky grammar.
- serbrech 14y agoOh, you're comparing ST2 to VS without R#. * Ctrl + D does copy lines * you can place the cursor at multiple places since VS 2010 * Extensive search with R# (Search files, classes, methods... * using CamelCase, fuzzy..) * sort shuffle lines, methods or any blocks with R#. So ok, it's R#, and I agree that ST2 is amazing out of the box. (LOVE it for the Rails side project I work on) but adding R# (or standalone add-ins) to visual studio will get you there too. Navigation within a .NET solution will always be better with VS + R# in my opinion.
- bemmu 14y agoI use ST2 and have been learning about using multiple cursors, but I wonder what kind of things are you doing where that comes in handy? So far I haven't had a chance to use it, especially since there already is a shortcut for commenting things out.
- amatix 14y agoExample: Take some log text, where all you're interested in is the messages, and you don't want hostname/date/time/etc cruft. 1. Ctrl+A Select all the lines 2. Ctrl+Shift+L to split into multiple cursors, 1 per line 3. Home/Ctrl+Shift+arrows/etc to select stuff to copy/delete I find it easier than constructing a regex to pass to find/replace.
- est 14y ago> but I wonder what kind of things are you doing where that comes in handy? so you got some property names like a b c d now convert them into ['a', 'b', 'c', 'd'] with ST2, you middle mouse vertical select, ctrl+right, press ', then end, press ,, then del.
- encoderer 14y agoHave you ever watched somebody proficient with Vim or Emac, who has spent years crafting the perfect .vimrc for themselves? You'd get it if you did.
- falling 14y agoAnd why would I want to spend years crafting the perfect .vimrc for myself when tools exist that already do 80% of that better and without any configuration? I say this with a carefully crafted and organized .vim folder.
- dakotasmith 14y agoConceptually, because of needs which exist outside of the coverage of that 80%.
- mhd 14y agoWhich magical tools are we talking about here?
- hollerith 14y agoUpvoted. And I have an .emacs.d folder carefully crafted over 20 years.
- deleted 14y ago[deleted]
- neutronicus 14y agoYou're missing a few more: emacs lives on every server I have to work on. emacs works with every language I have to use for work, including C/C++, Fortran, LaTeX, Python, Shell, and every language I like to play around with, including Haskell, Clojure, and Common Lisp. I switch between tasks often enough that the fact emacs can do all of them (and doesn't crash all the time like Eclipse...) is great.
- kingatomic 14y agoI use both IDEs and ST2. As with most things it comes down to personal preference, but perhaps mine may shed a little light. I use Eclipse for Java, VC++10 for C++, and ST2 for everything else. "Everything else" is a hodgepodge of things; dynamic scripting languages, JSON/CSV files, plain text files, etc. Basically everything one may use Notepad++ for, true; but I've found that I much prefer the ST2 interface, a subjective conclusion on my part. It's fast, it looks nice (to me), and I like the API.
- mpolun 14y agoMy biggest problem with IDEs is that they often don't like when I want to do something nonstandard. I've had trouble using git with Eclipse (it works, but I spend more time than I want fooling with it), for example. It's usually faster and simpler to add support for a new programming language or environment to a programmable text editor than to an IDE. Currently I'd say that the best environment for working with Go, is to use sublimetext2 and the GoSublime extension. IDEs are valuable when doing what they were designed for (I use Eclipse when I write Android apps, and I'd probably use Visual Studio if I was going to write something for the MS stack), but I'm rarely doing things that fit nicely into their world, and I end up spending more time fighting with them than they are worth. That's just for me though. Also: you can get completion in many text editors if you install the right plugins. See the GoSublime extension that I mentioned for example.
- vidarh 14y agoRegarding auto-complete, I find it is extremely rare that typing speed is what slows me down, nor that I end up having to chase code around. There are plenty of fast search solutions for terminal based editors, but I don't even use things like ctags because the times I've tried it the speedup was never compelling enough to justify yet another thing to install on all the machines I work on. Solving the problem at hand in a good way is usually far slower than editing the text in my experience. Maybe I'd think different about that if I went back to using C++, or were coding in Java or another verbose language, but thankfully I don't have to. But the bigger reason is: They are GUI apps. I do 99% of my work over ssh connections to servers where I have lots of screens open and waiting for me to attach with all the state I want ready and waiting no matter which machine I happen to connect from. I have shortcuts for a dozen machines or so on my desktop that throws me straight into a screen over ssh, and even in the two cases where those machines are across the Atlantic for me, my screen with my editor windows is open faster than any IDE I've tried will open locally on my machine. Being limited to local editor-state seems to me to be a huge step backwards.
- cageface 14y agoI find it is extremely rare that typing speed is what slows me down Auto-complete isn't about typing speed. It's about API exploration.
- kaffeinecoma 14y agoExactly. I avoided IDEs for years thinking they were for lazy typists. Finally a friend convinced me to try one, and it totally changed the way I work. Just hit CTRL-space and see what you can do with it. Who needs to look up documentation when you can just hit CMD+B and jump into that library's source code? Oh the time I wasted...
- vidarh 14y agoIf I don't remember a method or class name, I sure as hell don't want to auto-complete it into what I'm currently typing without opening up documentation.
- Derbasti 14y agoSee, I tried to use Visual Studio and I must admit I don't "get it". Actually, I'm not mocking you there. This is the truth. But I don't get many things. So I end up compiling with VS and editing code in Emacs, because VS does not have a shortcut to switch between files quickly and because VS does not integrate with Git properly and because VS does not have keyboard macros and because I just don't like VS much. Funny enough, I used to feel the same way as you do, though. I mean, how can you live without auto completion? But gradually I realized that in fact, I did not miss auto completion any more after a day or two not having it. And I did not miss a method browser either. And a menu bar. And... a mouse. I think we humans are clever animals and we can adjust to any number of things. Me, I have been through IDEs (XCode, Eclipse, VS), Textmate, Vim and now Emacs. In the end I think it boils down to fun: I can work with pretty much any tool or language you throw at me. But to really get me going I need to have fun. And Emacs is giving me that. I am not quite sure if it really is any more or less efficient than XCode or Visual Studio or ed or whatever, but I know that I am magnitudes more productive when I am having fun than when I don't. So use what you like best. Just don't forget that it is about having fun! Anyone who tells you otherwise... well, I frankly don't care. Have fun!
- recursive 14y agoctrl + tab to switch between open files. ctrl + w, ctrl + s to focus the project explorer, from where you can use the arrow keys to select a file from the current project.