FAQ Database Discussion Community


In zsh how do I bind a keyboard shortcut to run the last command?

keyboard-shortcuts,zsh,oh-my-zsh
I frequently find myself wanting to repeat a command, and while !! is useful, I'd like to bind that to ctrl-w or something like that. Is there a way to do that? EDIT: I'm aware that the up arrow does what I want, however I would rather not have to...

Jump into interface in Eclipse by shortcut

eclipse,keyboard-shortcuts
I want to jump from an class (method) that implement an interface (method) to the interface method by a keyboard shortcut in Eclipse. Is there a shortcut to do this?...

Netbeans Lowercase Shortcut Not Working

netbeans,keyboard-shortcuts,netbeans-8
Netbeans has a nice set of keyboard shortcuts, but unfortunately, I can't seem to get all of them to work. Specifically, there's a keyboard shortcut for converting selected text to lowercase: Ctrl+U L. However, no matter how many times I try this (or variations on it), nothing happens I just...

Alt shortcuts in Java?

java,keyboard-shortcuts
In Visual Studio as you use the '&' before a letter in the text of a button or etc. for getting a letter underlined shortcut so ALT + that letter executes the button or etc. I wanna know how do that in Java. I know it's possible because I have...

Visual Studio new MVC View shortcut

asp.net-mvc,visual-studio-2013,keyboard-shortcuts
Does anyone know if there is a command I can add a shortcut for adding a new MVC View (.cshtml) in VS 2013?

Eclipse: quickly create method template from definition in interface

eclipse,keyboard-shortcuts
I use Eclipse sometimes and when I type a name of a method that doesn't exist I can create this method's new body via Ctrl+1 menu. Is there some shortcut that allows to make same thing with new methods in an interface? I know that there are some shortcuts like...

Navigate Excel Drop-Down List via Keyboard

excel-vba,drop-down-menu,keyboard-shortcuts
I've created a List of employees and applied a drop-down menu to a number of cells. I've already found the helpful Alt+Down arrow tip to allow me to enter the drop-down via the keyboard. However, I don't seem to be able to select an entry from the list via the...

How to access keyboard shortcuts programmatically

ios,keyboard-shortcuts
In "Settings" -> "General" -> "Keyboard" -> "Shortcuts",we are able to query,add and delete our shortcuts, so when we are typing a shortcut,the full phrase will be showing in the keyboard. So I am wondering if we could access the keyboard shortcuts in code.(for example,I want to add some useful...

Keyboard shortcut for 'new blank activity' in Android Studio

android-studio,keyboard-shortcuts
Is there a keyboard shortcut to add a new blank activity in Android Studio? I know you can click File -> New -> Activity as explained here but this gets annoying and tedious when I'm adding multiple activities. EDIT: Clicking on the package name followed by Alt+Insert shortcuts to File...

UIKeyCommand with modifier won't be recognized on first invocation

ios,objective-c,keyboard-shortcuts,uikeycommand
I support keyboard shortcuts in my iOS app through serving UIKeyCommand instances from my view controller. The following works like a charm and causes the provided selector to be invoked every time you press e: - (BOOL)canBecomeFirstResponder { return YES; } - (NSArray *)keyCommands { return @[ [UIKeyCommand keyCommandWithInput:@"e" modifierFlags:0...

Why are dead keys not working with some letters in AutoHotkey?

keyboard-shortcuts,autohotkey,globalization,keyboard-hook,dead-key
In an AutoHotkey script, why do dead keys not work with some letters? As an example, when running AutoHotkey with the following script: #InstallKeybdHook EndKeys = {LControl}{RControl}{LAlt}{RAlt}{LShift}{RShift}{LWin}{RWin}{AppsKey}{F1}{F2}{F3}{F4}{F5}{F6}{F7}{F8}{F9}{F10}{F11}{F12}{Left}{Right}{Up}{Down}{Home}{End}{PgUp}{PgDn}{Del}{Ins}{BS}{Capslock}{Numlock}{PrintScreen}{Pause} <^>!`:: Input, SingleKey, L1, EndKeys IfInString,SingleKey,a Send,{U+00E0} ;à IfInString,SingleKey,e Send,{U+00E8} ;è return return then pressing the...

File Dependent Key Bindings

keyboard-shortcuts,sublimetext,sublimetext3
I have added following piece of code to Preferences > Key Bindings - User configruation file in my Sublime Text 3: { "keys": ["ctrl+b"], "command": "insert_snippet", "args": {"contents": "<strong>${0:$SELECTION}</strong>"} }, As a result, when user presses Ctrl+B in editor, current selection is surrounded with HTML tags <strong> and <strong>. Is...

Which is better for MFC application hot key or Accelerator?

c++,windows,visual-c++,mfc,keyboard-shortcuts
We have MFC application which has around 10 image buttons to which we want to provide shortcut keys. Shortcuts will be customizable. I have implemented shortcuts (with no customization right now) with hotkeys using ON_WM_HOTKEY() message. After searching through Goolge I am little confuse. For example, this question is suggesting...

Vim: copy a word any number of words away

vim,insert,copy,editor,keyboard-shortcuts
Just supposing the cursor is at the underscore '_': line one function Abracadabrabrabra() = { line two stuff _ line three more longWordIdoNotWantToType } And I want to insert Abracadabrabrabra, or maybe longWordIdoNotWantToType, or both, is there some way I can do it like this: execute a magic key command,...

Setting OS Specific Keybindings - Cmd on Mac and Ctrl on Everything Else

javascript,osx,keyboard-shortcuts,keyboard-events
When configuring the Ace editor, you have the option to set OS specific keybindings, like {win: "Ctrl-Esc", mac: "Cmd-Esc"}. This works, so obviously OS specific bindings can be done in JS. How do you define shortcuts (on any element) that require that the user holds Cmd on OS X and...

Qt 5.4 Ctrl+Z shortcut conflict in Python? Doesn't work until its button has been pressed

python,qt,keyboard-shortcuts
In Qt Designer 5.4, I have a QPushButton and have set its shortcut to Ctrl+Z. I'm using pyuic5 to turn it into Python code. This is the resulting line in the Python code: self.quickTextUndoButton.setShortcut(_translate("newEntryDialog", "Ctrl+Z")) When running the application, pressing Ctrl+Z does not call the slot as expected, until the...

Close JS Menu on ESC

jquery,html,css,keyboard-shortcuts,keyboard-events
I am working on a simple slide-in menu system. I'd like to be able to close a menu by hitting the ESC key. Here's my current code: http://jsfiddle.net/3w539Lct/3/ Line 126 of my Javascript, you can see: $( document ).on( 'keydown', function ( e ) { if ( e.keyCode === 27...

Xcode 6 keyboard shortcut's, tips and tricks [closed]

ios,objective-c,xcode,keyboard-shortcuts
Hi guys I am new to Xcode and iOS development environment and want to know some tips, tricks or shortcut keys which can save good amount of my development time any link, blog or answers will highly appreciated thanks in advance.

comment lines with syntax error

eclipse,syntax-error,keyboard-shortcuts
I am using Eclipse Java EE IDE for WebDevelopers in Version Luna (4.4.2). Is there any way to comment lines with syntax error via shortcut automatically? I mean not just CTRL + / on every line (with syntax errors) manually. ...

XCode Formatting

xcode,formatting,keyboard-shortcuts
Is there a short cut or some quick way for Xcode to format this code: if(x==10){ if(y=100){ //Do this } } To this: if(x==10){ if(y=100){ //Do this } } Sometimes the logic of the code can get a little hard to read. I seem to spend a lot of time...

Custom Keybindings for Ipython terminal

python,keyboard-shortcuts,ipython,key-bindings
Is it possible to define custom keybindings and/or desactivate the default ones for Ipython terminal interface? For example, I have bound C+j and C+l to move left and right in my terminal by configuring the ~/.inputrc file (Linux), but when using Ipython terminal, C+l is captured before and actually clears...

rename or re-alias builtin vim command to make completion unambiguous

vim,keyboard-shortcuts
I have a vim plugin (Startify) whose name/command overlaps with the name of a builtin vim command, :startinsert, which I don't use. I would like to rename or in some way mask the builtin command (e.g. to :UNUSEDstartinsert or something), so that I can begin typing ":Startify" and press tab...

How Vaadin translates &Address to Alt+A using shortcut by a shorthand notation in AbstractField.FocusShortcut?

java,keyboard-shortcuts,vaadin,textfield,shorthand
reading this page of the Book of Vaadin: https://vaadin.com/book/vaadin7/-/page/advanced.shortcuts.html You can also specify the shortcut by a shorthand notation, where the shortcut key is indicated with an ampersand (&). // A field with Alt+A bound to it, using shorthand notation TextField address = new TextField("Address (Alt+A)"); address.addShortcutListener( new AbstractField.FocusShortcut(address, "&Address"));...

In TOAD, is there a way to comment out arbitrary blocks of code (i.e not whole lines)?

keyboard-shortcuts,toad
The shortcut to commend out code in TOAD (11.6.16) is CTRL+B However, the problem is that it does not let you comment out an exact selection within a block of code. So I when I run CTRL+B it simply comments out ALL the lines of the code , so I...

Cannot catch Ctrl+Alt+F1 in WinForms MDI. Is it special?

.net,winforms,keyboard-shortcuts,mdi,toolstripmenu
My WinForms MDI application has several keyboard shortcuts set at ToolStripMeniItem items. Among the following ones: Ctrl+Alt+F1 Ctrl+Alt+F2 Ctrl+Alt+F3 the first one is never triggering its menu item. Others work as expected. Is it somewhere blocked/used? Is there some list of such blocked keyboard shortcuts? Is there a way how...

Sublime 3 toggle comment command doesn't work in Windows

keyboard-shortcuts,sublimetext3,preferences
I've edited the file Preferences > Key Bindings User, and added this: [ { "keys": ["ctrl+/"], "command": "toggle_comment", "args": { "block": false } }, { "keys": ["ctrl+shift+/"], "command": "toggle_comment", "args": { "block": true } }, ] But the shortcuts doesn't work. What went wrong?...

Goto method of class shortcut

java,eclipse,eclipse-plugin,keyboard-shortcuts
I have a tool that will list failed tests, and I would like a way to open a fully qualified class and goto a method in Eclipse with a single string I can copy from the results. It can use any pattern whatsoever (I can change the test results layout),...

Mac OSX DDHotKey for Play/FF/Rewind Buttons

osx,keyboard-shortcuts,ddhotkey
I'm working on an OSX app with DDHotKeyCenter to control youtube/pandora song playbacks and would like to use the Mac play/pause, rewind, and FF buttons; however, they only seem to be accessible by calling the function key that they are mapped to (e.g., 'play' button maps to F8, so user...

QT Designer how to assign 2 hotkeys to a QPushButton (python3)

python-3.x,keyboard-shortcuts,qt-designer,pyqt5,qpushbutton
I created a simple GUI and assigned "Enter" to QPushButton ("Begin"). This is the line for it: self.Begin.setShortcut(_translate("Form", "Enter")) Evrything works perfectly, BUT how to assign 2 variants of hotkey for the same button? I want the button to react to 2 hotkeys: Enter and Return (Usual "Big Enter" and...

Android Studio import shortcuts from Eclipse

android-studio,keyboard-shortcuts
From someone who has used Eclipse for awhile I Prefer keeping the same shortcuts in Android studio. Is it possible to import shortcuts in Android Studio from Eclipse ?

Is there a shortcut to delete the currently open file in PHPStorm?

intellij-idea,keyboard-shortcuts,phpstorm
When I navigate to a file deep in directories with Ctrl+Shift+N, I see that the file can be deleted, so I navigate to the project pane, and open all the nested directories and then finally delete the file, which is annoying. Is there a keyboard shortcut to just delete the...

Visual Studio 2013: how to show active file in solution explorer?

visual-studio,visual-studio-2013,keyboard-shortcuts
During debug I can navigate far away from first file. It's usually useful to open solution explorer tree and check current opened file siblings. Is there shortcut to open current file in solution explorer?

SHIFT+7 = ALT - bizarre behaviour [on hold]

excel,keyboard-shortcuts
Suddenly, when using excel, SHIFT+7 has begun to produce the behaviour of the ALT-button in that it highlight my ribbon shortcuts. As SHIFT+7 is what I need to produce the character "/", this is a real annoyance. Keyboard layout is as it should be (Norwegian). Anyone knows if this is...

How to assign Control + . as a shortcut key?

c#,keyboard-shortcuts
I want to catch keys in my winform KeyDown event and set Control + . as a shortcut key. But I can't find . (dot) key in Keys list. private void frmMain_KeyDown(object sender, KeyEventArgs e) { if (e.Control && e.KeyCode == Keys.DOTKEY) //what is dot key //Do somthing } ...

Shortcut key to mimic the INTERNET button which some keyboards have

keyboard-shortcuts,remote-access,citrix
I often use a citrix website to then initiate a Remote Desktop application, in order to then use Remote Desktop Client by citrix to remote in to a work computer. I always use it full screen, (so that things like Windows key, Start key etc are passed to the remote...

How can i find where a method or a variable is used in Android Studio (shortcut)

java,android,windows-7,android-studio,keyboard-shortcuts
I know how to find the source by using ctrl + left click on a method, for example, but what if I want to find where this method is used? I'm using Windows 7. Let's suppose I have the following method: class A { public int sum(int a, int b)...

DrRacket keyboard shortcut for α-rename

keyboard-shortcuts,racket,rename
How can I bind a keyboard shortcut (e.g. F2) to α-rename in DrRacket, available as rename foobar in the context menu brought up by right-clicking on a variable name? The documentation boils down to "call a magic function name from the API", but I'm having a hard time finding that...

Shortcut key to go to last opened panel (dev panel) in Chrome

google-chrome,google-chrome-extension,keyboard-shortcuts,google-chrome-devtools
Is there a shortcut key to switch between the Chrome dev panels while you are working there like the ALT+TAB functionality for Windows? If not, then is it possible to configure it or write a plugin for this purpose? Also, I know that we have this shortcut key Ctrl+[ and...

How to add quotation marks around selected text in Eclipse

eclipse,keyboard-shortcuts
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?

How to detect shift + right arrow + some other key in angular

javascript,angularjs,keyboard-shortcuts,keyboard-events,keyup
I have a problem to detect shift + right arrow + p in angular. I am using angular 1.2.3 I have no problem to detect only right arrow + p but when the shift comes into game something brakes The question is hot to detect situation when 3 keys are...

Array in Autohotkey?

arrays,list,keyboard-shortcuts,autohotkey,hotkeys
Is it possible to assign this code to several keyboard hotkeys? $1:: StringReplace, ThisKeyLabel, A_ThisLabel, $ While GetKeyState(ThisKeyLabel,"P") { Random, r, 50, 250 sleep r Send % ThisKeyLabel } return Where $1 (hotkey 1) would be replaced with a list or array. For example: $hotkeys(W,A,S,D)...

send shift control down arrow in Remote Desktop on MAC to a windows PC

osx,keyboard-shortcuts,remote-desktop
I am trying to select a column in Excel such that the selected rows are all rows where data exists. I normally can do this by clicking on the first cell where data exists and then holding down Shift+Ctrl+Down arrow. This selects all the data in the column from the...

Override the browser shortcuts by my own custom shortcuts

javascript,jquery,keyboard-shortcuts
I created one Asp.net MVC4 web application using C# which we can dynamically create keyboard shortcuts for all the pages.And we can use that keyboard shortcuts instantly to go to specific page.And the problem is every browser have their own default shortcuts.For example If I create the keyboard shortcut CTRL...

Surrounding text with a method call

php,templates,keyboard-shortcuts,phpstorm
I have a class that has two methods that are used often:self::foo() and self::bar(). I would like to surround text, mainly variables in other methods. I can do comments, if/else, try/catch, etc, but I can't with arbitrary method calls. I don't even know if PHPStorm does this, honestly. Does anyone...

How to activate the cursor in VS2010 after pressing Ctrl-Tab?

visual-studio-2010,keyboard-shortcuts
When you come from a tool window and press Ctrl+Tab to go back to an editor window, the cursor is gone and replaced with a "line cursor" that only allows to scroll up/down but not enter text. Is there a key I can press to get the normal cursor back?...

Shortcut for hide a tool window in Intellij IDEA (Shift + Escape) is not working

intellij-idea,keyboard-shortcuts
I am using Intellij IDEA 13.1.5 and I cannot hide tool windows with default Shift+Esc keyboard shortcut. When I tried to set a different shortcut to the action, I figured out that Settings window cannot detect the Shift+Esc key combination. (I can set a different key combination in settings, but...

What button is represented by this symbol in phpstorm?

osx,keyboard-shortcuts,phpstorm,key-bindings
I was fiddling around in PhpStrom's keymap, and was confused by the predefined key binding for Hide active tool window as I don't recognize the circle symbol with the tilted arrow. What button am I supposed to press? ...

Multiples Keys in KeyBinding?

wpf,binding,keyboard-shortcuts,key-bindings
I want to setup hotkeys in my Wpf application. Using KeyBindings works in the simple case, for example: Ctrl+B, Ctrl+A, etc <KeyBinding Gesture="Ctrl+B" Command="{Binding Source={StaticResource localCusomCommands}, Path=AddTTRowCommand}" ></KeyBinding> <KeyBinding Modifiers="Control" Key="B" Command="{Binding Source={StaticResource localCusomCommands}, Path=AddTTRowCommand}" ></KeyBinding> But if I need hotkeys with multiple keys Ctrl+P+B, Ctrl+A+B, etc <KeyBinding Modifiers="Control" Key="P,B"...

Android Studio: AltGr + B shortcut not working

android,eclipse,android-studio,keyboard-shortcuts,keymapping
I've recently migrated from Eclipse to Android Studio and I had several problems which i mostly solved. One, which I don't have any idea to do with is, that the opening bracket shortcut "AltGr+B" is not doing anything. I've tried to: In Settings change the Keymaps to Eclipse | NO...

Shortcut for selecting run configuration in Eclipse IDE

java,eclipse,keyboard-shortcuts,shortcut,run-configuration
I have an Eclipse workspace with a bunch of projects. I manually created some run configurations for each project (it's necessary to pass some arguments to VM, so I can't just run it directly, e.g. using shortcut ALT+SHIFT+X, T in the specific file). Most of the time, I just use...

How do I change Alt+Enter keyboard shortcut in IntelliJ/Android Studio?

intellij-idea,android-studio,keyboard-shortcuts
Is it possible to change Alt+Enter (Show the list of available intention actions) keyboard shortcut in IntelliJ/Android Studio? I have browsed through File->Settings->Keymap and couldn't find it, though I remember that I was changing it before....

Enable Tab Key in my Web Browser Control

vb.net,outlook,webbrowser-control,keyboard-shortcuts,outlook-addin
I have a web browser control in a custom task pane control (User Control) and I open it as a sidebar as soon as my Outlook opens (I have created it as an Outlook Addin using Visual Studio 2013). The web browser control has a login form inside it and...

how to execute a command in selenium ide using keyboard

selenium,keyboard-shortcuts,selenium-ide
Is there any way to run each command using my keyboard like hitting enter to execute a command? Right now I have to double click my left mouse button to execute a command in Selenium IDE. Just imagine I have a lot of these, that's a lot of clicking! I...

Sublime Text: keyboard shortcut to select a function and its content

ubuntu,sublimetext2,keyboard-shortcuts,sublimetext,sublimetext3
function whatever(){ var = a; return a; } Is there any shortcut to select all of the above code? I know Ctrl+Shift+M will select the content within the parenthesis....

NetBeans shortcut key to see Maven variable value

maven,netbeans,keyboard-shortcuts
Is there a shortcut key in NetBeans that will allow me to see the value of variables used in a Maven pom.xml file? Example: If I place my mouse in the variable "${junit.version}" in this snippet: <dependency> <groupId>junit</groupId> <artifactId>junit</artifactId> <version>${junit.version}</version> </dependency> is there some key combination I could press to...