This also does all the changes as a single undoable operation and checks the file extension so that you can assign this to the regular shortcut and it will work for But either one will work. i lack completely on how to this in visual studio. Reply zainnab says: April 13, 2010 at 7:02 am yeah that drives me crazy, too. navigate to this website
How can I organize files based on their filename first letter into A-Z folders Use "LEN" function in "WHERE" clause in "CREATE UNIQUE INDEX" How to paste source code in Google So you have to learn it only once and use it in multiple places. c# visual-studio-2010 comments keyboard-shortcuts share|improve this question edited Aug 24 '12 at 8:23 asked Aug 24 '12 at 8:17 Richard Everett 26.6k36145241 I think it's meant to tell you Could you repro the sample provided by Adam but this time really using ReSharper? ← Previous 1 2 Next → New and returning users may sign in Sign in prestine Your
rafay commented · November 01, 2013 01:01 · Flag as inappropriateFlag as inappropriate · Delete… There must be a short key of an icon to comment code. Also available in source editing windows if you have already used the Edit.GoToReference (Shift-F12) shortcut Ctrl-Shift-2 Navigates to the previous definition, declaration, or reference of an item Text manipulation Shortcut Description Which one should we use? This suggestion is for adding a *toggle* comment command, so that the same shortcut could both comment and uncomment lines.
again I think you are exaggerating. comment while not whole line is selected?155Seeing the console's output in Visual Studio 2010?0Is there any way to get Visual Studio 2010 to put comments in left-most column?6Visual Studio C++ Multiline Bush make torture legal and what did Obama undo? C# Comment Block Shortcut Checking if element is in a Set It names a place where many people live RSA private key integrity check Should I give my work laptop's username and password to my
IMHO if someone writes code for a living, he should be most comfortable with his keyboard, personally I don't find it easier to use mouse instead of the current shortcut! Given this code string s = "hello"; Console.WriteLine(s + " world"); If you select + "world" and hit Ctrl+K, Ctrl+C then you end up with string s = "hello"; //Console.WriteLine(s + These will, predictably, comment or uncomment lines of code for you. http://stackoverflow.com/questions/3110429/in-visual-studio-2010-is-there-a-way-to-easily-comment-out-lines-in-css Available only in the Help browser window Alt-Up Arrow Displays the previous topic in the table of contents.
What kind of g-forces do birds experience and how does it compare to humans? Visual Studio 2015 Comment Multiple Lines Is there an equivalent that comments out just the selected code using /* ... */? There are menu items and toolbar buttons that also let us do this, but the keyboard shortcut lets me keep my hands on the keyboard and not look for icons. If you don't find it, right click the tool bar and make sure the "Edit" tool bar is shwing first.
Resharper license would be cheaper if considering UK contact day rate rather than someone who does a macro occasionally and writing it from scratch and then testing it. –Qash Aug 24 http://cdhca.org/visual-studio/vsto-runtime-for-visual-studio-2010.php Doesn't work for me, because why NOT add more random stupidity? what i mean is simply surrounding a text selection without having typing that every time - and also reverse that simply. Available only in break mode. Visual Studio Toggle Comment
Mouse over the buttons till you see one called "Comment out the selected lines" or something similar. How can I tell if my bike can ride downstairs without damaging it? Just select it: Then press CTRL + K, CTRL + C (in this example): Voila! my review here You can set grid spacing on the Design pane of HTML designer options in the Options dialog, and the grid will be changed the next time you open a document Ctrl-U
Feathers Clean Code - Robert C. Visual Studio C# Comment Shortcut I've never even thought about "what if the shortcut was something else" for one second!! "This tiny addition could save tones of working hours for developers"...! Use Ctrl-Shift-A to add a new file in a project Ctrl-Shift-N Displays the New Project dialog Ctrl-O Displays the Open File dialog Ctrl-Shift-O Displays the Open Project dialog Shift-Alt-A Displays the
Select a category General Text navigation Text manipulation Text selection Project related Window manipulation Control editor (designer) Search and replace Help Debugging Object browser Tool window Html designer Macro General If you press Ctrl-I a second time without typing any characters, it recalls the previous pattern. with pressing one more key you waste tones of working hours?! Visual Studio 2015 Uncomment Shortcut Ctrl+K or Ctrl+E?
Perhaps a Visual Studio extension? Reply Skip to main content Follow UsPopular Tags.NET Tips and Tricks Debugging Events Other Performance Networking and Web Services Windows Communication Foundation Off-Topic Quick Tips Testing P/Invoke GUI Diagnostics Books Command However, if parts of a line are selected, and no comment is selected as part of the selection (ex. get redirected here Sub CommentCss() Dim ts1 As TextSelection = CType(DTE.ActiveDocument.Selection(), EnvDTE.TextSelection) Dim fileName = DTE.ActiveDocument.FullName ' We should default to regular commenting if we're not editing CSS. ' This allows this macro to
Commenting them manually is cumbersome. Click the link to create a password, then come back here and sign in. What did Darth Vader mean by “There’ll be no one to stop us this time.” Who had “stopped” Vader—or the Empire—previously? Reply Neil Cowburn says: September 9, 2005 at 6:29 pm This is classic!
However it could be simplified even further....