keyboard-shortcuts

Visual Studio keyboard shortcut for Method Name combobox

瘦欲@ 提交于 2019-11-29 06:01:46
In VS 2008 (and prior versions as well I believe) when in the code editor there are 2 comboboxes at the top of the editor. On the left is a Class Name combobox and on the right is a Method Name combobox. Those are the tooltip descriptions but are a little misleading for instance the Method Name box shows all the methods, properties, events etc in the current file. Do these features have official names? I use the method name combobox a lot because I'll often know that there's a property or method or something in the file I'm working in, but can't remember the exact name, so the dropdown gives

Auto-generate a try catch block in visual studio 2010

∥☆過路亽.° 提交于 2019-11-29 05:26:59
问题 Anyone know if there is a keystroke shortcut or option to autogenerate a try/catch block around a statement in Visual Studio 2010? I can see what exceptions are thrown if I look at the overlay documentation when I hover over a statement. I'd like to right click -> generate try/catch, as it would save a lot of time in handling all possible cases. Is this possible? 回答1: Using the mouse Mark your code Right-click Select Surround with... Double-click try Using the keyboard #1 Mark your code using

Can Eclipse the Organize Import (ctrl+shift+o) command's handling of static imports be modified?

有些话、适合烂在心里 提交于 2019-11-29 05:24:30
I use the Eclipse keyboard shortcut Ctrl + Shift + O all the time (Organize Imports). However, it has one particularly annoying behavior: If I have any static imports like: import static java.lang.Math.*; Organize Imports will "helpfully" replace it with static imports of only the fields and methods I am actually using. For example: import static java.lang.Math.PI; import static java.lang.Math.cos; Is there any way to remove just this behavior from Organize Imports? Sure: Window -> Preferences -> Java -> Code Style -> Organize Imports Adjust the value for "Number of static imports needed for .

How to create a shortcut for user's build system in Sublime Text?

大兔子大兔子 提交于 2019-11-29 04:53:40
I've just created a build system named XeLaTeX by creating a file named XeLaTeX.sublime-build in the User directory of Sublime Text, whose content is: { "cmd": ["xelatex.exe","-synctex=1","-interaction=nonstopmode","$file_base_name"] } What should I do, if I want to bind my F1 key to this specific build system? Note: Ctrl + B , the default build system should not be influenced. That is to say, I could use Ctrl + B to use the default one, and the key F1 , the new system, is also available at the same time. Maybe there is another way to achieve this. Add the following text to Default(Windows)

How to remove a key from a minor-mode keymap in Emacs?

只愿长相守 提交于 2019-11-29 04:51:17
问题 I have globally assigned C-c/ to ace-jump-mode but reftex-mode (a minor mode for citations used with AucTeX) overrides this key with some function I never use. I tried local-unset-key but it only unbinds keys from the current major mode's map. How do I remove C-c/ from reftex-mode-map without making changes to reftex.el? 回答1: You can change an existing key map using define-key . By passing nil as the function to call, the key will become unbound. I guess that you should be able to do

How to implement keyboard shortcuts on websites

依然范特西╮ 提交于 2019-11-29 04:32:49
Where should I begin if I want users to be able to use keyboard shortcuts on a site. I'm currently using php and jquery to create site. How will I be able to add keyboard shortcuts aside from the usual point and click method. Links to site where I could begin will do. Thanks. rik As a starter: http://plugins.jquery.com/project/hotkeys [Edit 1/14/14: Dead link. See the Github page instead ] I've used jQuery.hotkeys by John Resig, and it works pretty well with the latest jQuery. Have a look at the static page samples on the github page. Maybe also look into using the accesskey attribute. Take a

Java Keybinding Plus Key

回眸只為那壹抹淺笑 提交于 2019-11-29 04:25:13
I was trying to create shortcuts for zooming in and out in an image editing application I'm creating and I noticed something strange. To bind the combination of ctrl + + , I had to use the = key and a control and shift mask: getInputMap().put(KeyStroke.getKeyStroke(KeyEvent.VK_EQUALS, KeyEvent.CTRL_DOWN_MASK + KeyEvent.SHIFT_DOWN_MASK),"ZoomIn"); Neither of the combinations where I tried to directly bind to VK_PLUS worked: getInputMap().put(KeyStroke.getKeyStroke(KeyEvent.VK_PLUS, KeyEvent.CTRL_DOWN_MASK + KeyEvent.SHIFT_DOWN_MASK),"ZoomIn"); getInputMap().put(KeyStroke.getKeyStroke(KeyEvent

How can I allow ctrl+a with TextBox in winform?

拟墨画扇 提交于 2019-11-29 04:23:58
问题 I'm asking the question already asked (and even answered) here: Why are some textboxes not accepting Control + A shortcut to select all by default But that answer doesn't work for me. I have this code: public class LoginForm : Form { private TextBox tbUsername; public LoginForm() { tbUsername = new TextBox(); tbUsername.ShortcutsEnabled = true; tbUsername.Multiline = false; Controls.Add(tbUsername); } } The textbox shows up, I can write on it, I can cut, copy and paste text on it without any

How to jump to the region header from the endregion tag in c# visual studio 2012?

爷,独闯天下 提交于 2019-11-29 03:35:39
If i have the following #region blah; blahblah; ..... moar; #endregion how can i jump to the top #region label if i see the #endregion tag on my screen? Is there a short cut? The answer is Ctrl + ] as already answered by @TheEvilPenguin. But I thought to add this awesome link for other shortcuts as well, which can be helpful in speeding up routine tasks in VS. EDIT : Save the link page as html in your system, as the link might expire in future. TheEvilPenguin Ctrl + ] will jump between the start and end of blocks. I just tested, and it works for #region blocks for me in VS2010. Edit: The

How can I un/comment out code in MySQL Workbench using a keyboard shortcut?

杀马特。学长 韩版系。学妹 提交于 2019-11-29 02:56:54
问题 I went to the official Workbench keyboard shortcut page and found this: Function | Keyboard Shortcut | Context -------------------------------+-------------------+----------- Comment/Uncomment lines of SQL | Modifier+/ | SQL Editor However, Control + / doesn't work. I have MySQL Workbench installed on a Windows machine. How do you get the shortcut to work? 回答1: Thanks for filing the bug report, it's annoying. If you have a full size keyboard try using the division symbol. i.e. The CONTROL + "