keyboard-shortcuts

How to locate a file in Solution Explorer in Visual Studio 2010?

萝らか妹 提交于 2019-12-17 17:21:01
问题 I have a huge solution with multiple projects. Sometime I need to navigate to a file in Solution Explorer . Using the VS 2010 ' Navigate To ' feature I can open any file by name in Visual Studio 2010 but I want to be able to select the file in Solution Explorer as well? 回答1: There's an option to track the active (open and viewed) item in the solution explorer. If the file is in view, the file in the solution explorer will be selected. Tools->Options->Projects and Solutions->Track Active Item

Eclipse copy/paste entire line keyboard shortcut

岁酱吖の 提交于 2019-12-17 17:18:55
问题 Anyone know the keyboard shortcut to copy/paste a line into a new line in Eclipse , without having to highlight the entire line? ctrl - alt - down turns my whole screen upside down (I'm on windows). Interestingly, that's what's specified in the windows->preferences. 回答1: Ctrl - Alt - Down : copies current line or selected lines to below Ctrl - Alt - Up :: copies current line or selected lines to above Ctrl - Shift - L : brings up a List of shortcut keys See Windows/Preference->General->Keys.

How do I associate a keypress with a DelegateCommand in Composite WPF?

感情迁移 提交于 2019-12-17 16:08:08
问题 I am building a composite application using CAL/Prism. The main region is a tab control, with multiple types of views in it. Each view has a custom set commands that it can handle which are bound to toolbar buttons at the top of the window. I've done this before in non-CAL apps by simply setting the InputBinding on the command, but I haven't been able to find any such mechanism in the source code for the CAL modules. My question is, what is the best way to hook up a keystroke to my view, so

Shortcut for selecting run configuration in Eclipse IDE

半腔热情 提交于 2019-12-17 15:56:34
问题 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 one run configuration (whereas for the first time I manually launch it using Run -> Run configurations -> (name) -> Run ). Since I configured Eclipse to always run the last run configuration (on F11 or CTRL + F11

Can you organize imports for an entire project in eclipse with a keystroke?

别等时光非礼了梦想. 提交于 2019-12-17 15:35:20
问题 Wouldn't it be nice to just do a keystroke and have eclipse organize all imports in all java classes instead of just the one you are looking at? Is this possible? Is there a keystroke for it? 回答1: Select the project in the package explorer and press Ctrl + Shift + O (same keystroke as the single class version). Should work for packages, etc. 回答2: You can edit the clean up options on save to make it organize imports. That way all of your imports will always be organized. In eclipse 3.4 just go

Weird keyboard locks in IntelliJ IDEA (delete & arrow keys, etc.)

那年仲夏 提交于 2019-12-17 15:29:18
问题 While working in IntelliJ IDEA, the keyboard occasionally locks in a way that delete or < > ^ keys don't work properly anymore, in a way that delete doesn't do anything anymore, and the arrow keys scroll the entire source code / editor section. I don't know if I am accidentially some kind of shortcut, but the only way I can get it back to normal again is closing and re-opening the IDE, which is annoying of course. I'm on Mac OS X Lion, latest IntelliJ IDEA CE (11.1.1), but also had it before

How do I move to end of line in Vim?

杀马特。学长 韩版系。学妹 提交于 2019-12-17 15:04:14
问题 I know how to generally move around in command mode, specifically, jumping to lines, etc. But what is the command to jump to the end of the line that I am currently on? 回答1: Just the $ (dollar sign) key. You can use A to move to the end of the line and switch to editing mode (Append). To jump the last non-blank character, you can press g then _ keys. The opposite of A is I (Insert mode at beginning of line), as an aside. Pressing just the ^ will place your cursor at the beginning of the line.

Visual Studio keyboard shortcut to display IntelliSense

旧城冷巷雨未停 提交于 2019-12-17 15:03:26
问题 What's the keyboard shortcut for Visual Studio 2005 and Visual Studio 2008 to display the IntelliSense box if one accidentally hits ESC and wants the box come back again? 回答1: Ctrl + Space or Ctrl + J You can also go to menu Tools → Options → Environment → Keyboard and check what is assigned to these shortcuts. The command name should be Edit.CompleteWord . 回答2: Additionally, Ctrl + K , Ctrl + I shows you Quick info (handy inside parameters) Ctrl + Shift + Space shows you parameter

simulate backspace key with java.awt.Robot

纵饮孤独 提交于 2019-12-17 14:58:30
问题 There seems to be an issue simulating the backspace key with java.awt.Robot . This thread seems to confirm this but it does not propose a solution. This works: Robot rob = new Robot(); rob.keyPress(KeyEvent.VK_A); rob.keyRelease(KeyEvent.VK_A); This doesn't: Robot rob = new Robot(); rob.keyPress(KeyEvent.VK_BACK_SPACE); rob.keyRelease(KeyEvent.VK_BACK_SPACE); Any ideas? 回答1: It seems to work in this test. Addendum: Regarding the cited article, "Aside from those keys that are defined by the

Xcode: Delete line hot-key

自闭症网瘾萝莉.ら 提交于 2019-12-17 10:29:14
问题 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? 回答1: 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