I am giving ReSharper for C# a whirl. I have found that I prefer Visual Studio's simpler "Find All References" over ReSharper's more detailed "Find All Usages". "Find All References" finds everything I need 95+% of the time. Does anyone know of a way to turn off "Find All Usages" and revert back the VS's implementation?
Unfortunately, there is no way to turn it off without turning the whole thing off.
Sorry, it takes a bit of getting used to.
To restore the original VS 'Find All References' command:
Go to ReSharper Options > Environment > Keyboard & Menus
Clear 'Hide overridden Visual Studio menu items'
The 'Find All References' command will be available in the context menu of a type
To restore the original 'Shift+F12' shortcut:
Go to Visual Studio Options > Environment > Keyboard
Enter 'Edit.FindAllReferences' in the search box
Set the cursor in the 'Press shortcut keys' field , press Shift+F12 and click 'Assign'
Select 'Text Editor' in the 'Use new shortcut in' selector, then set the cursor in the 'Press shortcut keys' field, press Shift+F12 and click 'Assign'
"Yet, selecting "None" on the Group By combobox of the Find Usages window gives a listing similar to VS's Find All References."
Unfortunately that is still a regression as the filename is not listed on the line items. Ironically the line/column coords are still displayed which seems a bit pointless without the context of the filenames.
I'm using ReSharper 8, and when I have many usages, I would prefer having VS's Find All References listing because it's more compact. Yet, selecting "None" on the Group By combobox of the Find Usages window gives a listing similar to VS's Find All References.
Related
In Android Studio I changed the tab key function from file > settings > keymap. I chose to remove all other bindings from tab key (mistake!!). And now I can't get auto-complete to work like before.
I want to select an item from the auto-complete pop-up then press tab to complete the word (I think this the default behaviour):
But when I press tab it "completes the sentence" and puts my cursor at the end of the line:
I don't want this, I want to just complete the word and the cursor to stay in place. This is my current configuration for tab:
How do I get the default behaviour back? I really don't want to reinstall Android Studio and it is driving me crazy.
--------------- edit ---------------
"Complete current statement" binding doesn't work:
Now when I press tab nothing happens, it doesn't auto complete at all.
Found the problem. Had to bind "Choose lookup item replace" to tab key to get the default / correct behaviour.
The default IntelliJ / Android Studio "Redo" action shortcut is CTRL+Shift+Z and this is a common problem for Windows users.
A bigger problem is CTRL+Y is mapped to the "Delete line" action - and this causes the undo stack to be lost.
To solve this issue, how can the "Redo" shortcut be changed to CTRL+Y in IntelliJ?
Open Settings (press CTRL+ALT+S)
Click Keymap on the left list.
There is a combobox that contains keymaps. Select one of them (default means IntelliJ of course. We can't change any of pre-defined keymap however we can copy, edit and then use the edited one. So) we should copy "default" to change only redo mapping.
Give a new name to your copied keymap.
Right click on:
Main Menu -> Edit -> Redo to click "Add Keyboard Shortcut"
Press CTRL+Y
Click OK
Click "Remove" to "the shortcut is already assigned to other actions. Do you want to remove other assignments?"
If you want to use any "remove line" shortcut also, then go to delete line shortcut and give to it any other shortcut (like 5th step)
Click OK to close settings window.
Change the keymap setting to the Visual Studio, Eclipse, or NetBeans preset.
The settings window can be found under File > Settings. CTRL+ALT+S should work if the shortcut hasn't been changed. In the settings window you should find Keymap under the Appearance & Behavior settings list.
You can configure each editor command to a key combo that you like (as #ismail yavuz mentioned) such as for Redo to CTRL+Y or you can just change the Keymap setting to an editor that you are used to. This might be best if you are in the process of switching to IntelliJ as it is probably the path of least resistance. The default settings for the Visual Studio, Eclipse, and NetBeans keymaps all map Redo to CTRL+Y.
The Principle of least astonishment is strangely violated for Windows users but at least shortcuts is customizable. Because of this command being so contrary to the Windows experience I decided it wasn't worth learning the IntelliJ keyboard when anywhere you're working at you need to, you can quickly change. There are almost no drawbacks to not learning the IntelliJ. Remember that in the keymap menu you can search for a command in the search box or click on the magnifying glass on the right to search by key combo.
Of course neither answer is wrong. Chose your preference.
I've searched throu lots of articles but not found an answer, some has come up with workarounds but not really answered the question.
I want to locate a file in the project view over the files in Android Studio.
There is in the project view a button named scroll from source, this one does what I want. But I want it as a keyboard shortcut, like the command in Visual Studio many has as shift alt l. The resharper command is locate in solution explorer
There is also an option in the project view to mark always scroll from source.
These options are useful but do not solve my question.
One might think this would do it, but I don't want the project view over the files to scroll up and down all the time. I want a keyboard short cut because that is what feels fastest to me to work with and makes it more comfortable.
It's possible to achieve this by typing Alt + F1 followed by Enter. If you want to change that to one button press then your best bet is to record those commands as a macro.
To do this go to Edit > Macros > Start Macro Recording. Then press Alt + F1 followed by Enter. Then go to Edit > Macros > Stop Macro Recording and give your macro a name when prompted. Now that your macro is saved you can assign a key binding to it. Go into Settings > IDE Settings > Keymap > Macros and there you will find your macro which you can then bind.
It didn't seem to work for me unless it was a single keypress so I bound the macro to F10.
I just upgraded to Visual Studio 2012 from 2010 and cannot stand the fact that Cntrl + F brings up the new Quick Find dialog in the upper right hand corner of the editor. I typically just dock the Find and Replace window and prefer to use that. Is there a way to disable Cntrl + F from bringing up the new Quick Find window and instead have it move focus to the Find and Replace window similar to how VS 2010 did it?
Yes there is. You can assign the keyboard shortcut ctrl+f to edit.findinfiles in tools>options>environment>keyboard. So far it works for me.
Instead of modifying the default keyboard shortcuts consider using
Ctrl+Shift+F for "Find in files"
Ctrl+Shift+H for "Replace in files"
Sometimes it's not always possible/advisable to change the default shortcuts. Like when working on another persons computer.
context, Find and Replace "window" in VS2012 (rc)
Anyone know how to either alter the behavior or get back the old find and replace?
When you execute a search in the new "Find and Replace" you can press F3 to cycle through the results (same as old behavior). However, you have to click ESC to put the active cursor location in your code. With the old setup (if you have the search window auto-close) the cursor is already in the code. Pressing down without pressing ESC requests the history of searches dropdown list to open.
Basically, I just want the old search window, it worked perfectly.
Nope, this is the new search box, and the old one basically isn't available anymore. What you can do it file a bug report on the Connect site, but honestly it will probably be ignored because MS has decided that usability is not important for this new version of Visual Studio (in my own humble opinion)
Good luck!
As an alternate, I guess that you could make an extension that repeats the previous behaviour (like I am doing for all of my Macros) but that is kind of in the territory of overkill.
If you hit Ctl-Shift-F or Ctl-Shift-H, you'll open the Find/Replace in files dialog, which is very similar to Visual Studio 2010. Even though it says "find in files", you have the option of searching in selected text and the current document.
Taking the information above, I went into Tools / Options / Environment / Keyboard and switched the Ctrl+F and Ctrl+Shift+F hotkeys around.
I then dragged the "Find and Replace" window to the right and docked it as a tab (along with Solution Explorer, Properties, etc), as I haven't found a way to have it close automatically after starting a search.
I can now place the cursor anywhere in my document, press Ctrl+F, enter my criteria and press F3 to start the search.
Repeated F3's, even after moving the cursor, behaves just like the good-old-times! (but as bobobobo mentions, be prepared to curse if you accidentally start your search with ENTER instead of F3 :()