Can I Customize LinqPad shortcut keys? - keyboard

I am accustomed to using ESC to "list members" and F1 to "show parameter info" in Visual Studio. This is an old habit from XCode. Is there any way to achieve this in LinqPad? I noticed an advanced preference called "use visual studio shortcut keys". My first thought is that this option would copy your key mapping settings from visual studio into LinqPad, but that does not seem to be how it works.

There's no way to customize keyboard shortcuts in LINQPad right now. The "Use Visual Studio shortcut keys" option (for which the default is TRUE) just tells LINQPad to use shortcuts consistent with VS's defaults.
Setting this option to false makes it consistent with early versions of LINQPad which used single-key combinations for things like comment/uncomment rather than the VS-style chords.

Related

How do I see both Resharper's and Visual Studio's refactoring suggestions?

In Resharper for Visual Studio, often I want to use a refactoring suggestion and I'm not sure whether it is part of Resharper or VS. Sometimes I have to push Ctrl+. to open Resharper's refactorings and then hit escape and then push Alt+Enter to open VS's wrench or light bulb.
Is there a way to combine these into one menu or otherwise see both, of course without losing the VS refactorings?
ReSharper used to be able to merge VS actions into the Alt+Enter menu, but right now as of 2022.3 this functionality is broken (see RSRP-486822).
I suggest you disable "Hide Visual Studio Quick Action icons in the left editor margin" setting in R# options. This was you will be able to see VS actions using Ctrl+., and R# actions using Alt+Enter.

Resharper Shortcut keys messed up

Yesterday, resharper randomly uninstalled after I had VS crash, after re-installing, nothing works correctly. I have reset VS's default key bindings and then enabled resharper's. When I first use a resharper shortcut, a menu pops up as expected asking me to select whether or not to use the resharper versions of shortcuts. I say yes and select apply to all resharper shortcuts. This is where the strangeness begins. Here at work we use code cleanup a lot (ctrl+e, ctrl+f), but ever since the crash and reinstall, I cannot use this shortcut. It recognizes the ctrl+e and opens up recent files and doesn't wait for the ctrl+f part of the shortcut. Thoughts?
Seems like you applied "IDEA/ReSharper 2.x" keymap scheme. Please reset keymaps once again and then apply "Visual Studio" keymap scheme here ReSharper | Options | Environment | Keyboard & Menus.
By the way, a default Code Cleanup shortcut in "Visual Studio" scheme is "Ctrl+E, Ctrl+C", not "ctrl+e, ctrl+f" you mentioned

Strange key mapping in Android Studio

I am new to Android studio, it seems to be great IDE. But I have found that it has really strange key and shortcut mapping. I am using Czech keyboard.
When I try to type ">" by pressing Right ALT + . the symbol is not appearing, and I got message box that says "Go to custom Region. There are no custom foldings regions in the current file."
It is really strange behaviour, I have problem with writing many more characters like brackets,..... I tried to set keymap profiles to Visual Studio and more. But nothing seems to work. I didn't have any of these problems in any other IDE (Netbeans, Eclipse, Visual Studio, Xamarin)
Add this line:
actionSystem.force.alt.gr=true
to this file:
...\Android\android-studio\bin\idea.properties
As written here:
http://youtrack.jetbrains.com/issue/IDEA-91975
Yes, well... its problem with "old" keyboards. Newer keyboards don't have Alt Gr keys and IDE doesn't count on this in default.
Solutions:
Buy a new keyboard with no Alt Gr on it (using right Alt instead of Alt Gr is working for me)
Go to File -> Settings -> Keymap and search for implementation - delete Ctrl + Alt + B, hit "Apply" and you can now use this shortcut for "{"
As already mentioned below... add following line to ..\<Android Studio folder>\bin\idea.properties:
actionSystem.force.alt.gr=true
(update) Since newer version of AS (not sure which one, should be 2.3.3+), you don't need to manually access the properties file. Go to Help -> Edit Custom Properties and add actionSystem.force.alt.gr=true there.
Go to Preferences -> Keymap and choose Mac OS X as Keymaps.
I have been a long time Visual Studio user, so wanted to leverage all the keyboard shortcuts that I had picked up using Visual Studio.
On Android Studio, I first changed the Keymap to be Visual Studio. You can do this by using Alt+F7 on Windows and then search for Keymap.
By using the Visual Studio Keymap in Android studio, I got only debug related mapping, which was still a minority of what I use in Visual Studio.
So went ahead and added/modified some more mappings.
Here is the github link
https://github.com/vinayakg/VisualStudioKeymapforAndroidStudio/blob/master/settings.jar.
PR's welcome.
As for '>' sign (AltGr + .) and Android Studio 1.0.1, go to File>Settings, choose Keymap in IDE Settings section, search for "GotoCustomRegion" item (it is located in MainMenu-Navigate) and remove its mapping (via context menu).
If you're using macOS newest versions and have had weird behavior with the shortcuts, try this:
Go to Android Studio -> Preferences -> Keymap
Now change from "Mac OS X" to "Mac OS X 10.5+" and hit apply.

Resharper - Use only Inspection and Nothing Else at All in the Package

I have been evaluating Resharper and have heard how great it is. I agree that its code inspection is great, but I have to seriously disagree with the greatness of most other features.
All of the warts it adds to Visual Studio are killing my productivity. It has eaten Visual Studio's shortcut keys even though I told it not to, and even when I remap "Find All References" to Visual Studio, Resharper still coopts it.
We would like to be able to use the Code Inspection functionality and absolutely nothing else. Is this possible through documented or undocumented methods?
If problem only in keyboard shortcuts, you can change Keyboard scheme to Visual Studio. Go to menu Resharper -> Options -> Keyboard and Menus. Check Visual Studio Keyboard scheme at right part of window and apply it.

Ctrl-W stopped working

I have Resharper installed and somehow CtrlW no longer "extends the selection". I tried assigning it to Global / Resharper.ExtendSelection in Tools -> Options -> Keyboard but it still only selects one word.
I have found the resolutions. Go to ReSharper -> Options -> Visual Studio Integration -> Keybord Shortcuts --> ReSharper or IntelliJ IDEA.Next time when you press CtrlW, Visual studio will ask you about shortcuts. You will choice ReSharper shortcuts and that is it.
A solution i found was to reconfigure keys at the Text Editor level (they are defined at Global level and for some (annoying) reason Resharper overrides this.
So: (Tools->Options->Environment->Keyboard), set Use new shortcut to Text Editor and redefine your shortcuts.
Tip: Look for your CtrlW favorites by writing view. at Show commands containing.
I needed View.ErrorList (CtrlW, CtrlE), View.Output (CtrlW, CtrlO) & View.SolutionExplorer (CtrlW, CtrlS)
HTH
p.s.
I even disabled Resharper and it still won't work...
A question and a suggestion:
Does Resharper | Edit | Extend Selection work?
Reapply VS integration via Resharper | Options | Visual Studio Integration | Apply Scheme
For me the reason was a silly one:
My C# file was removed from the project accidentally, so resharper no longer regarded it as C# code and so there were no syntactical elements to extend the selection to. In other files it worked ok.
In my case (Visual 2019)
go to Tools\Options\Environment\Keyboard
set Apply the following additional keyboard mapping scheme to Resharper (Visual Studio)
I had the silliest reason.
after the resharper installation I didn't apply my license or started the evaluation.

Resources