I need to map mouse left click to left SHIFT key and mouse right click to left ALT key for better productivity :P.
But I DO NOT want to block any of key combinations like CTRL+SHIFT, SHIFT+CTRL etc.
So far, I'm able to get Alt+Tab functionality with (LAlt & *::Suspend, On).
But can't make it work for shift key.
Issue's I need to resolve:
1) not able to type in uppercase with shift+any_key
2) key combinations not working like ctrl+shift+any_key or shift+ctrl+any_key
Here's my script so far:
LAlt & *::Suspend, On
LShift::LButton
LAlt::RButton
Holding LEFT SHIFT key simulates the left click hold which is great and would like to keep it this way.
See modifier symbols about the tilde prefix (~) in particular.
~LShift::LButton
Hope this helps.
Related
at the top of VS code breadcrumbs, theres a list of sibling files.
i want to open it with a shortcut.
By the way, to switch between files, I use CTRL+TAB
By pressing Ctrl + Shift + <, it both focus the last segment of the breadcrumb and selects it. You can then use the up and down arrow keys to select the file you need.
If ever your cursor is in a method for example, the keyboard shortcut I just describe won't exactly fit, as the last segment of the breadcrumb may not correspond to the file but to its outline content. In this case you may need to favor Ctrl + Shift + . instead which only gives the focus to the breadcrumb and then use the left arrow key to reach the segment you need and then select it.
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.
There are already many questions about VS Code's block selection and multi-cursor selection, and I'm not asking how to use it, but rather, how to make it behave in the standard way on a Mac (without the shift ⇧ key pressed).
The way it currently behaves is this: your current cursor location defines one corner of the block selection, and when you press ⇧⌥ and click somewhere else, you define the opposite corner of the block. You can drag as you're clicking, but dragging really only changes the definition of that opposite corner. Your (text) cursor's position always defines one of the block's corners.
Considering that the VS Code default keybinding is ⇧⌥, the behavior is proper for having the shift ⇧ key pressed. But I'm trying to find a way to get the normal behavior that you'd expect on a Mac when the shift ⇧ key is not pressed.
In normal Mac behavior (without shift), the entire block is defined by:
where you first click, before you start dragging, and
where you release, after dragging.
This behavior is exactly the same as for plain-vanilla text selection, except that you get a block, instead of a line-oriented selection.
I would like to find a way to have VS Code allow me to define the block selection solely based on where I click and drag, and not based on the current text cursor location.
How can I do this?
Note that you don't have to drag the mouse. You can single click (with no modifier keys) in one corner, press and hold Shift and Option, and click in the opposite corner, then release the Shift and Option keys. So, your attempt to start the selection is actually extending it (relative to the previous selection).
What's working for me in 1.53.1 (January 2021 release) is to click and hold the mouse button (with no keys pressed; this starts a normal, non-column selection), then press and hold Shift and Option, then continue dragging the mouse. I find this method cumbersome and prefer selecting opposite corners as above.
I don't see an obvious way to change to Option-only to start a column selection.
I was wondering if it was possible to shorten code automatically in the last version of xcode. You know, when you press on the side of a void method for example and the (...) appear, and you have a shorter page. Is there a command to do it?
Click on the Editor>Code Folding menu and you'll see all your options for this, along with the keyboard shortcuts.
The shortcut is cmnd + shift + option + left arrow key. This will collapse all functions.
You can press command + alt + left cursor key on your keyboard to fold your codes or press command + alt + right cursor key to unfold. Make sure your pointer is inside of the curly brackets.
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.