I want to make windows keyboard shortcuts like mac.
I'm using a real mac keyboard (the keys in the left bottom corner are Ctrl, Alt, Win)
So I need:
Set some special hotkey with Win + ... (e.g. Win Q => Alt F4, code is #Q::Send !{F4})
Map other Win + ... => Ctrl + ... (e.g. Win A => Ctrl A and Win S => Ctrl S)
Keep origin behavior if Win key has pressed alone (open start menu)
Then I ran into problems with the step 2 and 3.
For step 2, If I map LWin::LCtrl, the hotkeys in step 1 won't work anymore.
For step 3, I found a solution that measure how long was the Win key pressed. But I want a more precise way like checking if any other key was pressed between the Win key down and up. I have no idea to implement it.
After this, I have a more special requirement.
Map Ctrl + Win + ... => Ctrl + Alt + ..., that is to say map Win to Alt only if Ctrl has been pressed. (e.g. Ctrl Win A => Ctrl Alt A).
Related
I know in pycharm if we want to undo and the last change location is not in current page, the first ctrl + z would bring you to that location with cursor on it and the second ctrl + z would do the job. Do we have the same feature in vscode?
It is annoying that when I hit ctrl + z and it jumps to some part of the code and undos directly. Sometimes I just wanted to know what was there before undo it.
There a few ways to approach this.
Navigate History CTRL + TAB
Go Back ALT + ← / MAC CTRL+-
Go To Last Edit Location CTRL + k + CTRL + q / MAC ⌘ + k + ⌘ + q
Use the command palette to go to recent files
You could remap CTRL + Z, or more specifically, the when expression, to something less forgiving
I suspect the 2nd/3rd option is what you are looking for
I just find it is very hard to switch windows.Is there any tool or key-Binding ?
I already find some material on vscode site.
Each window has his own shortcut key, you cant use to switch windows using only one key. You can use their predefined keys to switch between windows.
Probably the most common are:
switching to the sidebar Ctrl + b
Selecting files in sidebar Ctrl + Shift + e
switch to terminal Ctrl + `
Opening the folder Ctrl + K O
Switching to files Ctrl + 1 for first file Ctrl + 2 for second and so on
You can find this link here for complete keybinding for VS Code
Im trying to remap the arrow keys to JKIL only when ctrl is down using the Autohotkey software.
^i::Up
^k::Down
^j::Left
^l::Right
The problem is when ctrl + Key is pressed it sends ctrl + arrow messing everything up.
What i want is (ctrl + Key == arrow) NOT (ctrl + Key == ctrl + arrow), is this possible?
Using AutoHotkey v1.1+ from http://ahkscript.org
This works
^i::send {Up}
^k::send {Down}
^j::send {Left}
^l::send {Right}
Hope it helps
I'm using Eclipse for Python and R development. How can I jump between editor tab and console window using a keyboard shortcut / hotkey?
Go view Console: Shift + Alt + Q + C
You can switch to Editor using Ctrl + F7.
Ctrl + Shift + L displays all the shortcuts in Eclipse.
I've found the following works:
Toggle between views: Ctrl + Shift + F7
Switch Editor: Ctrl + Shift + F6
Go to R Console (In StatET perspective): Ctrl + R, C
However, the first two are not a direct route back to the editor and require use of the arrow keys and Ctrl + 7 does not work for me. Any other ways to go directly back to the last editor used?
For RStudio:
Ctrl+1 : focus to source
Ctrl+2 : focus to console
More shortcuts are mentioned under the 'View' menu.
Is there a list of the default Eclipse keyboard shortcuts? I'm generally looking for language agnostic things like starting the debugger or deleting an entire line in the source editor.
Rather than a full list of shortcut (JGlass mentions for Eclipse 4.6 this pdf), I prefer using only a few shortcuts:
CTRL+Shift+L: "Show Key Assist", List of shortcuts (depending on the context)
CTRL+3: Quick Access
Source: "Good features of Eclipse 3.6 (Eclipse Helios) JDT, 2011, from Sony Thomas"
Those two covers almost everything.
You can add two others:
CTRL+1: Quick Fix
ALT+Shift+F1: Plug-in Spy
Note that Eclipse 2019-09 now shows key bindings when command is invoked.
For presentations, screen casts and learning purposes, it is very helpful to show the corresponding key binding when a command is invoked.
When the command is invoked (via a key binding or menu interaction) the key binding, the command's name and description are shown on the screen.
Key binding of triggered command shown on screen
You can activate this in the Preferences dialog via the Show key binding when command is invoked check box on the General > Keys preference page.
To toggle this setting quickly the command 'Toggle Whether to Show Key Binding' can be used (e.g. via the quick access).
As VonC said you can get alist of short cuts with the following command.
Ctrl + Shift + L "Show Key Assist", List of shortcuts (depending on the context)
SHORTCUTS FOR DEVELOPMENT
But here are some which you will use often during your development.
Ctrl + Shift + P Switch between openning and closing braces.
Ctrl + Shift + R Open any file quickly without browsing for it in the Package Explorer. This shortcut opens a dialog box that accepts the name of the file you’re looking for.
Ctrl + Shift + T Open a type (e.g.: a class, an interface) without clicking through interminable list of packages. If what you want is a Java type, this shortcut will do the trick.
Ctrl + O Go directly to a member (method, variable) of a class file, especially when there are a lot of methods.
Ctrl + Shift + F Format code.
Ctrl + Shift + / Comment out XML or JSP code.
Ctrl + L Go to line number N in the source file.
Ctrl + E Show a list of open editors.
Ctrl + F6 Move between open editors.
Ctrl + 1 Quick Fix.
Ctrl + 3 Quick Access.
Ctrl + Q Go to the last edit location.
Ctrl + T Go to a supertype/subtype.
Ctrl + I Indent selected code block.
Ctrl + + Move to one problem (i.e.: error, warning) to the next (or previous) in a file.
F3 Go to a type declaration.Alternatively, you can hold Ctrl down and click (ie: Ctrl + Click) the hyperlinked variable.
SHORTCUTS FOR VARIABLE GENERATION
Ctrl + 2 + L Generate return value type and variable assignment
Alt + Shift + L Generate return value type and variable assignment. but here you can make selections.
SHORTCUTS FOR DEBUGGING
F8 Resume
CTRL + F8 Resume.
F5 Step Into
F6 Step Over
F7 Step Return
CTRL R Run to Line.
F11 R Debug
CTRL + SHIFT + B Toogle Break Point
You can find further shortcuts under :
Help → Help Contents → Java Development User Guide → Reference → Menus and Actions
Previous answer not quite correct as in Eclipse you can redefine keyword shortcuts (as I often do).
You can always access current list of defined shortcuts by pressing Ctrl + Shift + L in Eclipse (on Windows at least).
The full list of defaults in Eclipse 4.6 and earlier versions can be obtained from this GIT Hub page:
https://github.com/pellaton/eclipse-cheatsheet specifically https://github.com/pellaton/eclipse-cheatsheet/raw/master/eclipse4.6/eclipse-shortcuts-4.6.0.pdf