keyboard-shortcuts

Eclipse: How can I make Ctrl+F11 work no matter which file is being edited?

喜你入骨 提交于 2019-12-03 11:58:31
Ctrl + F11 is the "Run" keyboard shortcut in Eclipse. But for me, that only works if a Main class is active in the editor. For any of the other 100+ java files in my workspace, eclipse pops up a dialog, complaining "Editor does not contain a main type". This makes the Ctrl + F11 shortcut nearly useless. I either have to press Ctrl + Alt + T , name of main class, Ctrl + F11 , or use the mouse. Do I have something misconfigured? What can I do to make Ctrl + F11 really run my program, no matter which file is active in the editor? Or is everybody using the Ctrl + F11 shortcut like that? edit: I'm

How to move Eclipse tabs with keyboard shortcut?

随声附和 提交于 2019-12-03 11:44:50
问题 I would like to move my tabs in Eclipse like this : From this: To this: But using a keyboard shortcut, 'cause is very annoying doing this with the mouse everytime just to reorder the tabs. Any idea ? 回答1: There is no such a shortcut. Tabs are shown in the order you open them. But you can switch the tabs using Ctrl + PageUp and Ctrl + PageDown . Or select one tab in the list of opened tabs using Ctrl + E . 来源: https://stackoverflow.com/questions/16276852/how-to-move-eclipse-tabs-with-keyboard

Shortcut to Navigate back in visual studio 2010 and resharper

两盒软妹~` 提交于 2019-12-03 11:40:20
I'm just getting back to visual studio 2010 after using phpStorm (jetBrain's product) and I'm missing all the nice shortcut keys. I've installed visual studio 2010 with resharper but am still missing some of the nice features. I can't figure out how to "navigate back" in my code. For example if I'm navigating to various method definitions and then I want to navigate back to where I just was how do I do this? I believe that in phpstorm I would press Ctrl + Alt + Left to go navigate back and Ctrl + Alt + Right if I wanted to go forward. It would keep a history so I could just keep going back as

WPF TextBox Intercepting RoutedUICommands

青春壹個敷衍的年華 提交于 2019-12-03 11:39:05
I am trying to get Undo/Redo keyboard shortcuts working in my WPF application (I have my own custom functionality implemented using the Command Pattern ). It seems, however, that the TextBox control is intercepting my "Undo" RoutedUICommand. What is the simplest way to disable this so that I can catch Ctrl+Z at the root of my UI tree? I would like to avoid putting a ton of code/XAML into each TextBox in my application if possible. The following briefly demonstrates the problem: <Window x:Class="InputBindingSample.Window1" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns

Is there a good Vi(m) command for transposing arguments in a function call? Bonus points for Emacs

偶尔善良 提交于 2019-12-03 11:24:55
For example if I have some code like: foo = bar("abc", "def", true, callback); Is there a nice command to move true to the 1st or 2nd position leaving the commas intact? P.S as a bonus my friend want to know if this works in Emacs too. In Vim if you place the cursor at the start of the first word and do dWWP then it will have the desired effect. Here is a breakdown: dW delete the current word, including the comma and the following whitespace W move to the start of the next word P insert the deleted text before the cursor This will work if there are further parameters after the pair to be

“Right Click” keyboard short cut for Visual Studio?

强颜欢笑 提交于 2019-12-03 10:56:56
问题 I'm trying to force myself to use as little mouse as possible and I can't find the answer to this simple short-cut anywhere! Here the the steps: Open up Visual Studio. Open any C# file (or any code file I believe) Point your mouse anywhere on the window/file. Right Click Is there a shortcut key for this so I don't have to move my hand to the mouse? 回答1: Taken from lytebyte, you've got two options: Shift + F10 That nutty key on the bottom-right of a modern Windows keyboard, the Menu key 回答2:

Python - A keyboard command to stop infinite loop? [duplicate]

北城以北 提交于 2019-12-03 10:46:44
This question already has answers here : Why can't I handle a KeyboardInterrupt in python? (6 answers) Possible Duplicate: Why can't I handle a KeyboardInterrupt in python? I was playing around with some Python code and created an infinite loop: y = 0 x = -4 itersLeft = x while(itersLeft<0): y = y + x itersLeft = itersLeft - 1 print "y = ",y, "itersLeft = ", itersLeft print y Is there a keyboard shortcut that would allow me to stop the looping - allowing me to fix the loop and then restart it? I've tried Ctrl + C and didn't have any luck. If it helps I'm using a Windows 7 environment. Thanks.

Key shortcut (hotkey) in Visual Studio to open a file inside your solution?

时光毁灭记忆、已成空白 提交于 2019-12-03 10:40:51
问题 Is there a key shortcut in Visual Studio to find & open a file inside your solution without using Resharper or any other tools? 回答1: Not a single keystroke, but yes: Ctrl+D > o f <space> filename (so that's five keystrokes before you start typing the filename). It then autocompletes the filename for you. You need the Find box in the toolbar for this to work. (If you change your mind about addins, SonicFileFinder is for this very purpose, and free.) 回答2: The accepted solution doesn't work in

List of de facto standard keyboard shortcuts for Windows apps?

旧巷老猫 提交于 2019-12-03 10:19:54
问题 Let's say I'm developing a new desktop application for Windows. Is there a list somewhere that I can consult (either from Microsoft or a 3rd party) of keyboard shortcuts that all Windows applications should support? (Note: When I say "all Windows applications" here, I really mean "all Windows applications where a particular keyboard shortcut makes sense." For example, a standard "Begin debug session" shortcut might make sense across IDE applications such as Visual Studio and Eclipse, but not

Eclipse's Visual Studio Ctrl+Tab and Ctrl+Shift+Tab Equivalent

前提是你 提交于 2019-12-03 09:41:59
In Visual Studio, I always use Ctrl + Tab and Ctrl + Shift + Tab to navigate between documents. I see that Eclipse has Ctrl + F6 to navigate between editors, but this isn't nearly the same behavior. The difference being, pressing it once and then again will get you moving back and forth between two files, whereas in VS, it will cause you to navigate forward based on the tab order in the editor. Any ideas on how I can replicate VS's behavior? Looking at Keys in the preferences dialog, there are commands for "Next editor" and "Previous editor", bound to Ctrl + Alt + Right / Left . I use Ctrl +