keyboard-shortcuts

Eclipse - Run/Debug shortcut key doesn't work

二次信任 提交于 2019-11-27 14:25:00
问题 In Eclipse I can only run/debug my project by using one of the menu buttons. Pressing F11 or Ctrl + F11 does nothing. I've mapped Debug Last Launched to all kinds of various keyboard shortcuts to see if another program running in the background was intercepting the key presses and that doesn't seem to be the case. Every other keyboard shortcut seems to work fine such as Ctrl + Shift + T or Ctrl + G . Any help? The shortcut key works on my other computer and I keep instinctively trying to

AutoHotKey key SEQUENCE, not just single-key hotkey

喜欢而已 提交于 2019-11-27 13:53:46
I'm not stupid... really. How do you map a key SEQUENCE (ie: Ctrl + Q , F ) in AutoHotKey. I've got Ctrl + Q down: ^q:: I've even got F : f:: The examples in the help files even show how to do two keystrokes in a row: Numpad0 & Numpad1:: But it just will not work with: ^q & f :: Or any of these either: LCtrl & q & f:: ^q & ^f:: ^q^f:: ^qf:: How do I accomplish a Key SEQUENCE triggering something, when one of those keys is the Ctrl key? I looked into using a HOTSTRING instead, but couldn't work out how to include the Ctrl character, in that context! Alright; The answer seems to be: ^q:: Input

Wrapping comments with line breaks in PyCharm

十年热恋 提交于 2019-11-27 13:38:48
问题 I have comments that gets balloon (PEP 8: Line too long ... > 120) I wish there was a command that will wrap the lines with few keystrokes. Right now, even if I type Alt+Enter and press enter on Reformat file , nothing actually changes. Is there a setting or plugin I could use to accomplish the formatting easily? 回答1: Firstly, reformatting won't work, not in Python at least, where whitespace is important. PyCharm's "Wrap when typing reaches right margin" option is what you're looking for. Now

How can we save all files in (VSCode) like we do in Visual Studio

Deadly 提交于 2019-11-27 12:36:44
问题 How can we save all the files in Visual Studio Code like we do in Visual Studio by pressing Ctrl + Shift + S ? 回答1: Doesn't look like there is a shortcut binding to it. Simplest way would be to use the menu accelerators: ALT + f followed by ALT + l . To change your key binding edit the keyboard preferences. Add the binding to the right half of the screen and then restart Code: // Place your key bindings in this file to overwrite the defaults [ { "key": "ctrl+shift+s", "command": "workbench

Using pyhook to respond to key combination (not just single keystrokes)?

谁说胖子不能爱 提交于 2019-11-27 12:30:21
问题 I've been looking around but I can't find an example of how to use pyhook to respond to key combinations such as Ctrl + C whereas it is easy to find examples of how to respond to single keypresses such as Ctrl or C separately. BTW, I'm talking about Python 2.6 on Windows XP. Any help appreciated. 回答1: Have you tried to use the GetKeyState method from HookManager? I haven't tested the code but it should be something like this: from pyHook import HookManager from pyHook.HookManager import

What's the equivalent for eclipse's ALT+UP/DOWN (move line) in Visual Studio?

孤街浪徒 提交于 2019-11-27 11:50:19
问题 In Eclipse, selecting a line and pressing Alt + ↑ / ↓ will move the line up and down, a quick way to avoid copy&paste. Is there an equivalent in Visual Studio? 回答1: In Visual Studio 2013 and later, this functionality is built in. ALT + UP/DOWN will move a line up or down. If you need this functionality in VS2012 (works with VS2010 too), take a look at the MoveLine Visual Studio Extension or the Productivity Power Tools suite. 回答2: ReSharper's Ctrl + Shift + Alt + ↑ / ↓ / ← / → is even more

Xcode: Delete line hot-key

ⅰ亾dé卋堺 提交于 2019-11-27 11:43:23
I'm looking for a way to map some hot-keys to "delete the line that my cursor is on" in Xcode. I found "delete to end of line" and "delete to beginning of line" in the text key bindings, but I am missing how to completely delete the line no matter what I have selected. TextMate has this functionality mapped to Ctrl+Shift+D and I'd like the same thing if possible. Any ideas? You can set up a system-wide key binding file that will apply to all Cocoa apps. To do what you want it should like like this: In your home folder, Library/KeyBindings/DefaultKeyBinding.dict { "^D" = (

Sublime Text: how to make shortcut for inserting text?

自古美人都是妖i 提交于 2019-11-27 11:34:52
问题 I need make a shortcut that will be adding certain text at the cursor, eg {sometext}, how can this be done? 回答1: Select the Key Bindings - User item under Sublime's Preferences , then add the following example line: {"keys": ["ctrl+shift+c"], "command": "insert_snippet", "args": {"contents": "hello!"}} This will add a CTRL + SHIFT + C shortcut to insert the hello! snippet. By the way, don't forget to add a comma to the previous key binding hash so that all but the last line end with a comma.

Eclipse: Keyboard shortcut for switching between consoles?

萝らか妹 提交于 2019-11-27 11:33:14
问题 In Eclipse (I'm using version 3.6 aka Helios), you can use Alt + Command + Q C (on Mac OS X or Alt + Shift + Q C on Windows/Linux) to give focus to the Console View. Ok. That's good. My problem is that in order to switch between consoles inside that view you have to click the ridiculously small arrow next to the 'Display Selected Console' icon. See: I find that quite annoying because I'm totally keyboard oriented and that is practically the only thing for which I have to use the mouse when in

Shortcut to switch between design and text in android studio

怎甘沉沦 提交于 2019-11-27 11:01:26
问题 Does anyone know some shortcut to switch between design and text in android studio while editing xml layout? While I can switch from design view to source using ctrl+B (and need to select something in layout before), I have no way to go back. 回答1: You can find it in Settings->KeyMap "Select next Tab in multi-editor file" CRTL+SHIFT+RIGHT (it may depend by platform). You can change it. 回答2: ALT + Shift + Left/Right works for me. (Windows) 回答3: ALT + SHIFT + LEFT/RIGHT on windows and ubuntu.