News for hackers. Stuff that matters.
Re:Sublime Text 2.0 Released by simonsarris on Tuesday June 26, 2012 @10:27AM (#4161965)
I 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.

Re:Sublime Text 2.0 Released by serbrech on Tuesday June 26, 2012 @11:56AM (#4162576)
Oh, 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.

Re:Sublime Text 2.0 Released by kingatomic on Tuesday June 26, 2012 @10:47AM (#4162105)
I 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.
Re:Sublime Text 2.0 Released by bemmu on Tuesday June 26, 2012 @01:55PM (#4163223)
I 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.
Re:Sublime Text 2.0 Released by amatix on Tuesday June 26, 2012 @04:54PM (#4164053)
Example: 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.

Re:Sublime Text 2.0 Released by est on Tuesday June 26, 2012 @08:45PM (#4164959)
> 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.