Move cursor left and right without arrow keys Visual Studio? - visual-studio

How can I move left and right in Visual Studio without pressing arrow keys? Ideally I would like to press right-alt and a character.

You can assign custom shortcuts to Edit.CharLeft and Edit.CharRight commands in VS keyboard options.

Go to visual studio's -> keyboard shortcut, then search for cursorleft, for moving cursor to left and cursorright, for moving cursor to the right. Assign key according to your choice. By default it would be assigned to left arrow and right arrow keys.

Related

VS 2017 (Left Arrow) was pressed. Waiting for second key of chord

In Visual Studio, when I position my cursor to the right of the semi-colon of the following C#:
var alpha;
When I press the left cursor key, nothing happens (call me old-fashioned but I want the cursor to move to the left). Instead, I notice VS shows in the status bar
(Left Arrow) was pressed. Waiting for second key of chord...
How can I setup VS so that Left Arrow is not the start of a chord in the editor?
I can go to Keyboard options but how do I find chords that start with Left Arrow?
I couldn't find a way to do this with VS. However, I found Resharper's Shorts Live View feature (press the left Ctrl key three times in text editor) which displays current shortcuts to be valuable in reporting what actual shortcut had been assigned an are currently active.
It seems I must have pressed Left arrow when assigning a keyboard, so with this tool I could see the name of the command assigned and remove it from Tool | Options.

How does one change the Keyboard Shortcut for the Intellisense Overload selector?

When typing an opening bracket on a C# method in Visual Studio the Intellisense appears for that method; if that method has overloads however, then the up and down arrow keys on the keyboard suddenly stop responding as normal and instead change the Intellisense displayed for the method.
This is annoying when you use the up and down arrow keys to navigate to the previous and next lines and then all-of-a-sudden they don't work! I found that shift and up/down, in this context then behaves as up/down did but that in-turn means that shift + up/down can no longer be used to select to the line above or below.
Is there a way to change the shortcut for the selecting displayed overload in Intellisense so it doesn't override the normal Up/Down and Shift + Up/Down keyboard behaviour?
I've included a screenshot to show the problem. Supposing the cursor is within the second Select which I have just opened the bracket of in order to see the Intellisense and I now decide I want to delete everything up to the open bracket of the first Select using Shift + Up then Delete. I can no longer do this as Intellisense has now hijacked the use of my Up/Down keys!
Intellisense Up/Down Key override problem

Keyboard Shortcuts in Visual Studio for faster coding

Visual Studio autocompletes brackets and tags and then shifts the cursor inside a bracket/tag upon creation.
I usually have to hit END then ENTER to continue past the tag, it would be really useful to 'jump' over the closing tag/bracket and possibly to the next line.
Is there a fundamental keyboard shortcut I'm missing here in order to accomplish this?
Can't find this in the MSDN VS Keyboard Shortcut manual either.
The keyboard shortcut you are looking for is Ctrl + Shift + Enter.
Pressing this will take you to the next line instead of inserting an enter, allowing you to move the cursor outside of the tag.

Visual Studio - move cursor to out of closing brace keyboard shortcut?

Given the following code example
someMethod(②someArgument①);③
I know moving the cursor from position ①->② shortcut is CTRL+], is there a ①->③ shortcut.
Is there a keyboard shortcut that escapes the brace when cursor is just left of brace (Not with End key).
In Eclipse, It can easily work with Tab key.
(In Visual Studio) - Try Ctrl+Shift+] - That seems to select text to where you might need to be, but if you press the ] again, by itself, it deselects, but leaves the cursor where you appear to want it.
Is that what you're looking for?

"Right Click" keyboard short cut for Visual Studio?

I'm trying to force myself to use as little mouse as possible and I can't find the answer to this simple short-cut anywhere! Here the the steps:
Open up Visual Studio. Open any C# file (or any code file I believe)
Point your mouse anywhere on the
window/file.
Right Click
Is there a shortcut key for this so I don't have to move my hand to the mouse?
Taken from lytebyte, you've got two options:
Shift + F10
That nutty key on the bottom-right of a modern Windows keyboard, the Menu key
Depends on where/why you're right-clicking.
The context-menu key is on the right of the keyboard nowadays, usually between the Windows key and the Control key on the right of your spacebar. That will open the context menu wherever the current focus is (usually in the text editor).
If you're using the right mouse button just to open the refactoring tools, you can use Ctrl + . (control period) to pop open the "smart tag" on any identifier. That'll get you the "generate method stub" menu item and the like.
To open a new file without keyboard you can use
CTRL + SHIFT + N (Using Resharper)
To show up the right click menu for any part of your code. Point to the part that you want and use
SHIFT + F10
Normally, I like using
CTRL + SHIFT + G (Resharper again)
for getting the Navigation menu (Usage, Base, Implementation, etc)
Even better if you want to go to any Method/class/intenal/or a field, use CTRL + SHIFT + ALT + N (Again using Resharper), this will bring you a list of all that match your criteria to choose from.
Does your keyboard have the extra 'Windows' keys, ie. the Windows logo (Start key) and the one on the right-hand side of the spacebar that looks like a menu? Cause that button on the right-hand side is the 'Context menu key'.
See the key between the right-hand side 'Windows' key and the Ctrl key?
Windows Keyboard layout
If your keyboard is less than 10 years old you should have these keys, unless you have an IBM laptop or a Mac.!
Assuming you just want a key you can press to right click, most\many keyboards have a key between alt and ctrl that right clicks.

Resources