3 ms·
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
by simonsarris 14y ago
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.
- 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.