keyboard-shortcuts

Use CMD-mappings in console Vim

ε祈祈猫儿з 提交于 2019-12-06 07:46:01
Is there a way to use Cmd key for Vim in terminal? Something MacVim does. I have remapped Cmd+S in iTerm2 to send Esc:w!<CR> to save files in Vim, but this sounds a bit weak. With all the power of iTerm and Vim there should be some way to do this right? It is possible, but it takes some doing and has some downsides. The first set of issues is that: although iTerm2 can accept the Command keys and pass them on to terminal programs, it can only do so by remapping them as something else, e.g. the Left Option or Control keys. it can only remap each modifier key everywhere in iTerm2; you can't do it

Keyboard access to Visual Studio Code status bar

喜欢而已 提交于 2019-12-06 07:41:38
Is there any way to access the Visual Studio Code status bar with the keyboard (i.e. not with the mouse)? Specifically, I would like to access the Targets:default part, which, as far as I can tell, originates from a language extension ( Haskero ). I can click on it with the mouse, but I haven't found a way to interact with it using the keyboard. Obvious attempts like Ctrl + Shift + p , followed by typing status , targets , haskell , and so on, have been dead ends. You can bind a keyboard shortcut to command haskero.selectTarget : 来源: https://stackoverflow.com/questions/52754334/keyboard-access

How to make a Custom Keyboard layout?

有些话、适合烂在心里 提交于 2019-12-06 06:20:23
问题 What's the best way to make a keyboard layout for Windows? Specifically a layout that will appear in the 'Text Services and Input Languages' list and without buying expensive software. I know about the Microsoft Keyboard Layout Creator but find it completely limited as you can't do simple things like remap the CapsLock key or the number keys. 回答1: For remapping CapsLock or the number keys, use remapkey.exe found in the Windows 2003 Resource Kit Tools. Keyboard layouts that show up in “Text

Display keyboard shortcuts in Visual Studio context menus

廉价感情. 提交于 2019-12-06 06:03:19
问题 Most of the time I use Visual Studio 2008. When right-clicking in this product, a context menu appears. I'd like to see the keyboard shortcuts bound to each menu item in the context menu. Does anyone know how to display these? 回答1: I don't think you'll be able to get them in the context menus, but you can get them in the tooltips, as when you hover over an item in a toolbar. Go to Tools>Customize and select the checkbox that says Show shortcut keys in ScreenTips . If you go to Tools>Options

How to add quotation marks around selected text in Eclipse

偶尔善良 提交于 2019-12-06 03:29:57
Countless times i have needed to put a quotation marks around text during programming. I remember awhile ago that i have seen someone selecting text and simply do magic with the keyboard shortcuts and putting quotation marks around it. How to do so? In eclipse 1. Window -> Preferences -> Java -> Editor -> Templates 2. Click on "New" 3. Type "quote" for name (you can name it whatever you want) 4. In the pattern box, enter "${word_selection}"${cursor} 5. Click ok 6. Click apply and close preferences 7. Select the string you want quoted, press CTRL + <space> and type quote 来源: https:/

How can I detect the operating system using GWT?

北慕城南 提交于 2019-12-06 02:13:50
问题 Basically what I want to know is to find out if my GWT application is running on a MacOS or any other operating system, to setup the shortcuts properly using cmd on a MacOS and ctrl everywhere else. 回答1: You can use: import com.google.gwt.user.client.Window.Navigator; ... String platform = Navigator.getPlatform(); This returns a String (the same as JavaScript's navigator.platform ). You can then decide on the OS similar to this script: It simply checks for the substring "Win"/"Mac"/"iPhone"/

Custom keyboard shortcut in java

半腔热情 提交于 2019-12-06 01:59:07
I am developing a java swing application. I want to add a keyboard shortcut say CTRL + H . This should perform the same action performed by jButton1 when clicked. This shortcut should behave in the same way even when jButton1 is not focused. I tried with KeyEventDispatcher, but it doesn't seem to be working for me. Is there any other way? Chan Ok - First I don't think there is a way to set application wide shortcuts in Java Swing(Refer this question ). But for a component it is possible. You have to use a create an Action for the KeyStroke . But for Windows I found this library very helpful .

Visual Studio: ctrl+shift+v opens clipboard ring window

☆樱花仙子☆ 提交于 2019-12-06 01:57:22
I'm trying to get the clipboard ring working by pressing Ctrl + Shift + V , but this only opens a window showing what the clipboard contains. I would like the items to cycle through as I press V , not open in a window. Ctrl + Shift + Insert works as expected, and they both seems to be mapped to Edit.CycleClipboardRing , so why don't they behave the same way? David Hedlund I think this is a ReSharper shortcut that's in conflict with your Visual Studio shortcuts. See if you can find a ReSharper shortcut mapped to Ctrl + Shift + V , if you've got resharper installed 来源: https://stackoverflow.com

Repeating a navigation command in vi

这一生的挚爱 提交于 2019-12-06 00:44:45
问题 How do I repeat a navigation command in vi? For example, I execute the command 20j which moves the cursor down 20 lines, and I tried hitting . to repeat that command, but it says "No command to repeat". P.S. Also, what command goes to the next page in a document? 回答1: There isn't a shortcut to repeat the last navigation command - you have to retype it, or set up some sort of shortcut of your own ( :map or similar). Page up (back) is Control-B ; page down (forward) is Control-F . Half-pages

“Windows” key as part of a shortcut key

久未见 提交于 2019-12-05 23:29:14
I very often open a console window while doing my development. Usually Win + R -> cmd -> enter. However, Windows also lets you add a shortcut key to any shortcut ... but when I try to add Win + C to make the shortcut for my favorite-sized/shaped/buffered console appear, it uses Ctrl + Alt + C instead (already used in various editors and other apps...no go.) Is there any way to use the windows key as part of a shortcut key combo? (This would be with Windows XP) You can use autohotkey for this sort of thing. And while you are at it. Use console for a much improved command console experience.