keyboard-shortcuts

Is there a shortcut for adding fields to existing constructor in Eclipse?

你。 提交于 2019-12-01 13:53:39
问题 Is there any shortcut in Eclipse that allows me to add a field to the argument list of an existing constructor? Example: I hava this class: public class A { int a; int b; public A(int a, int b) { this.a = a; this.b = b; } } when i add a field int c (or many fields) i want to add it to the argumentlist of the constructor and assign the parameter to the field: public class A { int a; int b; int c; //this is new public A(int a, int b, int c) { this.a = a; this.b = b; this.c = c; } } i currently

Assigning keyboard shortcut to get path of selected item in windows explorer

空扰寡人 提交于 2019-12-01 13:47:13
I don't know if this is even possible, but how can I bind some key combination to a (C#)program, so that when that keyboard shortcut is pressed with some file selected in windows explorer, it calls specific function with path of that file as a parameter. Or can I assign some keyboard shortcut so that windows explorer opens selected file in my program(that way I could pass the path to already running instance) thanks BenV You could modify your program to run as a shell extension which would add an item for your program to the right-click menu in windows explorer, but apparently coding shell

What is the “When” and “Command” for ctrl-P panels?

感情迁移 提交于 2019-12-01 12:40:53
I'm trying to create my own key shortcut to act as the arrow keys in Visual Studio Code. When I hit "ctrl-p" it pops up a window that I can navigate. However, when I use my special keybinding, which I've set as { "key": "alt+i", "command": "cursorUp", "when": "textInputFocus" } it does not move up to the next option like pressing the up arrow does. I'm guessing this is due to having either the wrong command or the wrong "when" for getting the keymap to trigger when that window is open. Normally in Atom I'd just use the key-binding-resolver, but Visual Studio Code doesn't appear to have that

Overriding shortcut assignments in Tinymce

為{幸葍}努か 提交于 2019-12-01 10:39:31
I am using Tinymce in an application that displays an html document and allows the user to annotate it. I have created a number of plugins and attached my own shortcuts to it. I also created my own handlers for Bold, Italic and Underline by commenting out the assignments in the tinymce javascript and creating my own. However there are a few shortcuts that I can't seem to use. I am using the addShortcut call. For example, CTRL-O brings up a standard file open window no matter how I try to override it. I can assign CTRL-SHIFT-O and that works fine. I also want to be able to override the default

Is there a shortcut for Sublime Text to find an open file (Eclipse Ctrl + E)?

天大地大妈咪最大 提交于 2019-12-01 10:36:59
Ctrl + P of Sublime Text lets me find a file from all project files. However, there are too many duplicated names. I’m looking for a shortcut key like Ctrl + E in Eclipse, so that I just need to find the file in my opened file. That would save a lot of key striking. Probably called “sidebar filter”? Does not matter if it’s 2 or 3. Sounds easy to implement just select Tools >> Developer >> New Plugin... and add the content: import sublime_plugin import os def _show_name(name): return ([os.path.basename(name), name] if name else ["untitled", "untitled"]) class ShowBuffersCommand(sublime_plugin

Key bindings in Xcode 5

瘦欲@ 提交于 2019-12-01 08:43:57
I used to do this: Xcode duplicate line But IDETextKeyBindingSet.plist doesn't exist anymore. There is a folder called "KeyBindings" with a blank text file in it. So how do we set up key bindings now? Specifically I just want command-D to duplicate the line the cursor is in, which is a basic functionality of every other IDE except Xcode. The KeyBindings directory stores just per-user key bindings for already available operations in Xcode. On the other hand, the IDETextKeyBindingSet.plist lets you add an operation to Xcode itself (and afterwards put a key binding into your KeyBindings dir).

Setting the Windows Forms ToolStripMenuItem ShortcutKeys property to numpad key does not work

大城市里の小女人 提交于 2019-12-01 08:33:26
We have the ability to define shortcut keys for Windows Forms application menu items. That way I can tell a menu item File->Save to have the shortcut key Ctrl + S and the menu item's handler is "magically" executed after pressing Ctrl + S . The trouble is with the numeric keypad keys, the ShortcutKey property does not accept them (I don't understand how are they different from the other acceptable keys). MSDN states that the property accepts type System.Windows.Forms.Keys (One of the Keys values. The default is None.); and an InvalidEnumArgumentException would be thrown when the parameter is

Click a NSPushButton programmatically with “animation”

回眸只為那壹抹淺笑 提交于 2019-12-01 07:33:19
I just ran into a problem I already know from other programming languages/frameworks .... Whenever the user clicks a certain button on the keyboard, he triggers the same action than when a certain button in the GUI is pressed. ( Some guys call these "shortcuts" ;D ) To give the user an optical feedback, I would like to sorta "click" the button programmatically rather than calling the same functions that get called when the button is clicked. If I set the button as a key equivalent in IB, it looks exactly as I want to have it. Can't do that here as the shortcut should just be enabled if the

Keyboard shortcuts and action listeners

余生长醉 提交于 2019-12-01 07:02:21
Wondering how to link a keyboard key to a JButton in netbeans, Downloaded KeyEventDemo program from oracle that lets you press a key and it tells you the keycode, Now im wondering how to implement that, working on a calculator project and I already have the ability to click on any button and have it either + , - , / , * or enter so now I am wondering how to link the 2 together, essentially I'm trying to figure out how to check which key is being pressed in a method, and then run a method depending on what they pressed! thanks for any info! See How to Use Key Bindings . Basically you bind a

Key bindings in Xcode 5

梦想的初衷 提交于 2019-12-01 06:06:46
问题 I used to do this: Xcode duplicate line But IDETextKeyBindingSet.plist doesn't exist anymore. There is a folder called "KeyBindings" with a blank text file in it. So how do we set up key bindings now? Specifically I just want command-D to duplicate the line the cursor is in, which is a basic functionality of every other IDE except Xcode. 回答1: The KeyBindings directory stores just per-user key bindings for already available operations in Xcode. On the other hand, the IDETextKeyBindingSet.plist