keyboard-shortcuts

Go to Matching Brace in Visual Studio?

人走茶凉 提交于 2019-11-26 16:51:41
Is there a way in Visual Studio 2008 to go from a closing brace to its opening brace? I've found a fair amount of stuff about highlighting the brace, but nothing about moving the cursor to it. (VB.NET version of this Question: Keyboard shortcut for Jumping between "If/End If" ) Tim Santeford I found this for you: Jump between braces in Visual Studio Put your cursor before or after the brace (your choice) and then press CTRL + ] . It works with parentheses ( ), brackets [ ] and braces { }. From now on you don’t need to play Where’s Waldo? to find that brace. Use CTRL + ] to switch between them.

Eclipse Optimize Imports to Include Static Imports

本秂侑毒 提交于 2019-11-26 16:46:44
Is there anyway to get Eclipse to automatically look for static imports? For example, now that I've finally upgraded to Junit 4, I'd like to be able to write: assertEquals(expectedValue, actualValue); hit Ctrl + Shift + O and have Eclipse add: import static org.junit.Assert.assertEquals; Maybe I'm asking too much. Joey Gibson I'm using Eclipse Europa, which also has the Favorite preference section: Window > Preferences > Java > Editor > Content Assist > Favorites In mine, I have the following entries (when adding, use "New Type" and omit the .* ): org.hamcrest.Matchers.* org.hamcrest

AutoHotKey key SEQUENCE, not just single-key hotkey

落花浮王杯 提交于 2019-11-26 16:31:33
问题 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

Android Studio Keyboard shortcut control

為{幸葍}努か 提交于 2019-11-26 16:06:24
问题 Can anyone give me some suggestion or link of all controls of Android Studio keyboard shortcuts? 回答1: Move to File -> Settings -> Keymap and change Keymaps settings to eclipse so that you can use the short cut keys like in eclipse. 回答2: Preferences > Keymap will show you all the keyboard bindings. A couple helpful hints to help you find features: You can search actions by name; on MacOS the keybinding is Command + Shift + A . You can start typing the name of a command and it will show you all

Xcode duplicate line

最后都变了- 提交于 2019-11-26 15:36:54
There is a Duplicate command in the Edit Menu (with a default shortcut of ⌘ D ), but it is (as Halley pointed out) meant for duplication in the Interface Builder part of Xcode. So, how do you ( easily ) duplicate a line in Xcode 4? Related question (with a working answer) for Xcode 3 ... and which does not work for Xcode 4. Why not just copy & paste? Because it is tedious and entails too much hand-acrobatics: either (1) : moving to line beginning and then pressing ⇧^E , then copying with ⌘C , moving to new line, alligning cursor, and finally pasting with ⌘V ; or (2) : ^A (set cursor to line

Sublime Text: Select all instances of a variable and edit variable name

十年热恋 提交于 2019-11-26 14:57:21
问题 I'm new to Sublime, and I just discovered that if I select a variable (not just any string) in my code, all other instances of that variable get a stroke (white outline) around them: Is there a keyboard shortcut that will let me select all of those instances of the variable and edit them all at once? Things I've tried: Using ⌘ D , ⌘ K , and ⌘ U lets me select them one-by-one, but I have to manually exclude the non-variable string matches: And using Ctrl ⌘ G simply selects all the string

Visual Studio keyboard shortcut to automatically add the needed 'using' statement

非 Y 不嫁゛ 提交于 2019-11-26 12:34:52
问题 What is the keyboard shortcut to expand the little red line that gives you the menu where you can choose to have the necessary using statement added to the top of the file? 回答1: Ctrl + . shows the menu. I find this easier to type than the alternative, Alt + Shift + F10 . This can be re-bound to something more familiar by going to Tools > Options > Environment > Keyboard > Visual C# > View.QuickActions 回答2: Alt + Shift + F10 will show the menu associated with the smart tag. 回答3: I can highly

Sending Windows key using SendKeys

独自空忆成欢 提交于 2019-11-26 12:28:49
问题 I am working on shortcuts in C#. I succeed implementing Ctrl, Alt and Shift with SendKeys. Like this; Ctrl + C : System.Windows.Forms.SendKeys.SendWait(\"^c\"); or Alt + F4 : System.Windows.Forms.SendKeys.SendWait(\"%{F4}\"); But I can\'t send \"Windows Key\" with SendKeys. I tried ex: Win + E : .SendWait(\"#e\") but it\'s not working. What should I use instead of \"#\"? Thanks. 回答1: OK turns out what you really want is this: http://inputsimulator.codeplex.com/ Which has done all the hard

Assigning a keyboard shortcut for a specific Eclipse build configuration

让人想犯罪 __ 提交于 2019-11-26 12:21:40
问题 In our Java project in Eclipse, we have several build configurations, as we have an engine that when run, builds installation jar for a specific projects according to the parameters it gets, so each build configuration run the same build with different parameters to build installation for a specific project. Currently, I have to go to the Run Configuration drop-down button in the toolbar to start the engine, and I need to select the build configuration from the list in order to run (or debug)

Xcode duplicate line

做~自己de王妃 提交于 2019-11-26 12:15:32
问题 There is a Duplicate command in the Edit Menu (with a default shortcut of ⌘ D ), but it is (as Halley pointed out) meant for duplication in the Interface Builder part of Xcode. So, how do you ( easily ) duplicate a line in Xcode 4? Related question (with a working answer) for Xcode 3 ... and which does not work for Xcode 4. Why not just copy & paste? Because it is tedious and entails too much hand-acrobatics: either (1) : moving to line beginning and then pressing ⇧^E , then copying with ⌘C ,