When i type something and i want to open the little menu integrated in visual studio i press CTRL + .
Unfortunately this menu has very few options, and the things I need are in the Resharper menu (which is represented by the red lamp on left)
I want him to generate empty method..
The way I do it now is by clicking on the lamp, and then choosing the option i want (like generate method, add readonly to field, convert to lambda ... )
I can't find a way to open that menu otherwise and i'm sure that some keyboard shortcut must exist.
I know that the question seems dumb, but it will save me lots of time in the long run :)
Thank and have a good day.
The Shortcut for Quick Fix is Alt + Enter, which is the same than add reference with the Visual Studio scheme.
You can change it in Tools->Options->Environment->Keyboard, look for the command named ReSharper_QuickFix (I also heard it was renamed to ReSharper_AltEnter in some versions).
You want the Action List. To access it hit..
Alt + Enter
Here is the full list of R# commands
Here is more info on the Action List.
The below extension is for VS2012 will helps you to see the available shortcuts. Sometimes this will suites for your needs
http://visualstudiogallery.msdn.microsoft.com/f2964c90-68e2-4ddd-861a-bd66e5cd4434
Related
In Visual Studio, C#, we have many interfaces. And you want to see a function's implementation and the only way its by pressing Ctrl+F12=GoToDeclaration.
The other shortcuts Ctrl + Left Click or F12 will go to the function's definition in the interface. Which is not so used compared to the necessity to see the actual implementation and navigate code.
I highly navigate by clicking names. I know you also do. And the only way is by pressing two keys which is extremely slow especially because when inspecting you usually only use the mouse.
I want to change GoToDeclaration shortcut from Ctrl + F12 to Mouse middle button click (scroll click) and Visual Studio settings allows me only keyboard shortcuts.
According to the comments:
A simple workaround to use middle mouse button click (scroll click) instead of Ctrl + F12 for the GoToDeclaration shortcut is to use AutoHotKey program.
~MButton:: { Send {LButton} Send ^{F12} Return }
I don't want a "space", for example, to trigger auto-complete.
It's not where it used to be in VS2010: (Tools - Options - Text Editor - C# - Intellisense). (MSDN) and I couldn't find it anywhere else.
You can use CTRL + ALT + Spacebar to toggle IntelliSense Suggestion Mode. That way when you hit space it wont auto-complete the suggestion. http://blogs.msdn.com/b/zainnab/archive/2012/05/01/9943045.aspx
I had a look and I think they removed this option in 2015. What you can do is simply press Right Arrow to cancel the commit. In VC++ these options are still available for some reason.
I have recently installed Reshaper....this is very good and helpful however it has changed all my keyboard shortcuts e.g. to comment out code it was Ctrl + E then C, now it is Ctrl + K then C ... this is a pain given that I have got myself into a natural swing of using all the shortcuts and now I have to think everytime I want to use them...
A solution is obviously to shut up and use the new shortcuts ... I agree, but its unnecessary to change the way I work if a alteration solution is possible - so therefore its necessary to not change.
You can tell Resharper to use the VS shortcuts instead. At least for those you already know, they will stay the same
#Mike mentions the Tools, Customize, Keyboard button. There's a 'Reset' button in there that will take you to a pre-Resharper state.
If you later want to go back to the Resharper shortcuts, you can use a button in Resharper's own Options dialog to apply them.
Select ReSharper menu -> Options -> Visual Studio Integration: Select None and Apply Scheme. However, I highly recommend you pick one of the two keyboard layouts and learn it. Also, unplug the mouse a couple of hours a day. It helps improve efficiency.
It should be possible. Check out this MSDN article on how to alter keyboard shortcuts in Visual Studio.
Yes, just go to Tools->Customize and click the "Keyboard" button in the bottom left.
During installation of ReSharper you can set whether it uses its own shortcut keys or Visual Studio. Moreover, there is an option in ReSharper to associate/dis-associate the keyboard shortcuts after installation.
i want to ask abt Sharpdevelop.
Can i change the control's event name in sharpdevelop ? I want to add "_" like in visual studio.
For Example, button click event in Sharp develop defaulted to Button1Click. can i change to Button1_Click like in visualstudio ?
Thanks.
Mike Webb's answer is the only way to generate an event handler method name with an underscore without modifying SharpDevelop's source code.
Lex Li's answer is also correct. There is no option in SharpDevelop to enable automatic generation of event handler method names that use an underscore. The only way currently is to modify the source code. It is a fairly straightforward code change.
Download the source for SharpDevelop.
Extract the code.
Locate the EventBindingService class (src\AddIns\DisplayBindings\FormsDesigner\Project\Src\Services\EventBindingService.cs)
Locate the CreateUniqueMethodName method.
Modify the single line of code in this method to use an underscore in the string format:
return String.Format("{0}_{1}", Char.ToUpper(component.Site.Name[0]) + component.Site.Name.Substring(1), e.DisplayName);
Build SharpDevelop from source code by running src\DebugBuild.bat or src\ReleaseBuild.bat
Then when you use your customised version of SharpDevelop and double click a button in the forms designer, for example, you will get an event handler with a name like "Button1_Click".
At some point in the future SharpDevelop 4 will allow this with an option that can be selected in Tools - Options.
Yes. If you go into design and look in the properties window for the control you will see a few icons at the top. One of these should give you the list of events (in VS it is a lightning bolt). In the left hand column are the linkable events and in the right hand column are the functions that are called when the events are triggered.
Simply rename the left hand field and make sure you have the function named correctly in code as well. You can also type a name into the left hand field and then double click inside it to generate the function automatically.
The underscore is evil to some people, like me :)
Well, if you do want the underscore, check out SharpDevelop source code and locate that part and modify it. It is open source, so you can do whatever you like to please yourself. I did not see a setting available somewhere, so modify the source code seems to be the only way to achieve your goal.
I know this is an old thread but in SharpDevelop v4.3 (v4.x - v5.x) there is a solution to this. In the past i've had to use the above method, however this one is much faster and easier.
Launch SharpDevelop and check the following setting:
Tools > Options > Windows Forms Designer > General > "Generate Visual Studio Style Event Handlers"
I've just recently started using VS2008 for a new tools project, and have been spending a lot of time in Eclipse/Java. The one thing I am missing is the thing I could have sworn was in VS2005 the last time I worked with it - the class outline.
I'm speaking of the basic outline in Eclipse, where you can see the class members, methods, etc and click on them to navigate to them.
The only thing that sounds like it might be it (but is not) is the Class View.
Any help?
This is probably the closest addin that you'll find that has it:
Source Code Outliner Power Toy
(The window on the left is what it adds to Visual Studio)
alt text http://i3.codeplex.com/Project/Download/FileDownload.aspx?ProjectName=SourceCodeOutliner&DownloadId=3493
"You can dock the Source Code Outliner anywhere, like to the left side of the Visual Studio window next to the Code Editor window."
"Click a method or variable name in Source Outliner and the code associated with what you clicked displays near the top of the Code Editor window."
JetBrains Reshaper.
This is what I had to do:
Open the Object Browser (View->Object Browser). It will open as a tab.
Right click the tab and select the "dockable" option. Then it will open as a window floating around.
I have 2 monitors, so in one of them I have visual studio, and in the other I put the Object Browser window. If you click something in the Object Browser, it will take you to where it is defined in the visual studio editor.
Not the same as the Eclipse outline (I miss it too), but this is the closest to it I'have found without adding pluggins.
Try this menu option:
View > Class View
The default keyboard shortcut is
Control + Shift + C