I used resharper and there has been a very useful thing .
'Ctrl + click' - goes to definition
'Ctrl + Alt + click' - goes to implementation
If there are more than one implementation the list of all implementations shows up and you can choose a necessary implementation
Is there a way to make it in the visual studio 2019.
PS: I know about visual studio Ctrl + F12 .But I'm interested particularly in ctrl + alt + click
If you are using ReSharper, then you can enable this in the Options -> Search And Navigation but I don't think VS offers this out of the box.
And if you are using JetBrains Rider, then you can go to File -> Settings, search for implementation and right click on Implementation(s) and select Add Mouse Shortcut and then do Ctrl Alt Click
Related
I am using Visual Studio 2015 and I'm trying to learn keyboard shortcuts. I cannot find a shortcut that changes focus to the menu bar. Does it exist? Similar to Ctrl + Alt + L to change to the solution explorer.
I am aware of Ctrl + Tab, but I want to be able to access the whole menu bar without having to reach for my mouse.
I just figured it out myself. It is Alt + first letter of the tab.
So to access the File tab. Alt + F
Or Project tab. Alt + P
Is it possible to create a short cut in Visual Studio that includes a left mouse click?
Currently, Ctrl + Left Click short cuts to Go to Declaration.
I'd like to map Ctrl + Shift + Left Click to Go to Implementation.
I know I can create a keyboard only shortcut, but I'd like to include the mouse.
From what I know this is not supported by default in Visual Studio.
You can have Ctrl + Alt + Left Click to go to implementation with ReSharper.
Using ReSharper you have an option for this in ReSharper options:
ReSharper is a paid extension that brings a lot of great features to Visual Studio. I'm not affiliated in any way with ReShaper. I'm just a fan of the extension.
I'm developing a report in the Business Intelligence studio and I lost my dataset. The pane was near toolbox, and it is gone. What is the name of the pane I should to reopen?
If anyone is interested: Ctrl+Alt+D combo helped me.
In Visual Studio 2013 running SSDTBI for VS 2013 the option has moved to the "View" menu, and confusingly it only shows if an actual report has focus. So click somewhere in your report, and then click "View"
Or as stated by others Ctrl+Alt+d still works, though only if you have a report focussed.
For some reason Ctrl + Alt + D didn't work for me.
I found it under Data -> Show Data Sources...
You would think it would be under View.
I am using VS 2010 and Ctrl + Alt + D worked for me.
You have to click somewhere on the report to work this.
Similarly:
Ctrl + Alt + L for Solution Explorer
Ctrl + Alt + S for Server explorer
F4 for Properties
If there's no Data in your top menu, there's no option DataSource Window to click. Luckily often Ctrl + Alt + D works.
I'm trying to switch to Resharper from CodeRush and really struggling with this one.
In CodeRush when you are over a variable/method etc. if you press "Tab" it will jump to the next usage of it. Similar to VS.NET's Ctrl + Shift + Down/up
Is there anyway to do this in Resharper? Is there any plugin or a way for me to assign Tab to similar command in Resharper?
ReSharper has this functionality, but only after you have either found or highlighted the usages of a variable/method/etc...
The keyboard shortcuts depend on whether you are using the Visual Studio or IDEA keyboard mappings (set in ReSharper -> Options -> Visual Studio Integration -> Keybarod Shortcuts).
To find the usages, press Shift + F12 (Visual Studio) or Alt + F7 (IDEA).
To highlight usages, press Shift + Alt + F11 (Visual Studio) or Ctrl + Shift + F7 (IDEA).
Once you have done either of the above, you can move to the next usage using Ctrl + Alt + FPgDn (Visual Studio) or Ctrl + Alt + Down (IDEA).
This ReSharper help page has a more complete set of shortcuts.
In Eclipse, selecting a line and pressing Alt + ↑/↓ will move the line up and down, a quick way to avoid copy&paste.
Is there an equivalent in Visual Studio?
In Visual Studio 2013 and later, this functionality is built in. ALT + UP/DOWN will move a line up or down.
If you need this functionality in VS2012 (works with VS2010 too), take a look at the MoveLine Visual Studio Extension or the Productivity Power Tools suite.
ReSharper's Ctrl + Shift + Alt + ↑/↓/←/→ is even more powerful - when on the beginning of the line, it will move the entire line, but can also be used to move entire methods, change the order of parameters, etc.
For me in Visual Studio 2019 it comes default closed.
For open it:
Tools -> Options -> Keyboard then select Edit.MoveSelectedLinesUp, click "Press shortcut keys" input and press Alt + Up (or whatever you want for it). And the other one is Edit.MoveSelectedLinesDown, click "Press shortcut keys" input and press Alt + Down (or whatever you want for it).
This is now working out of the box with Visual Studio 2013, same way as in Eclipse.
For Visual Studio 2013:
Tools -> Options -> Keyboard then select Edit.MoveSelectedLinesDown, click "Press shortcut keys" input and press Alt + Down. You also have to select the scope of the shortcut to be within "Text Editor".
In Visual Studio 2013 and later, you can move lines up and down using Alt + ↑ / Alt + ↓. Unfortunately this will not adjust the indentation if you move between blocks, as of today only ReSharper (and all other IDE's by Jetbrains including Rider) can help you with that.
To move entire blocks of code around you can move the cursor to its head and press Ctrl + m twice fast to collapse it, and then use the command above to move it around.
Here is a neat reference to all default keyboard shortcuts in different versions of Visual Studio.
With the VSCommands extension, you have exactly that keyboard shortcut. And, by the way, a Stack OVerflow notification toolbar :)