keyboard-shortcuts

Xcode Command-Slash Shortcut to Comment Only Works Sometimes

寵の児 提交于 2019-11-28 16:17:05
I'm having issues with Xcode being quite unreliable when using the keyboard shortcut to comment or uncomment code ⌘ + / . I can't seem to find a real pattern as to when it breaks, but it usually happens after building and running my code on the simulator. It will not work again until I edit something in any one of my code files. Even if I switch to another file in the main view, commenting via shortcut does not work. Other keyboard shortcuts, such as indenting ⌘ + [ continue to work just fine. Do other people have this issue, and if so, have you found a solution? I know it seems like a small

IntelliJ IDEA jump from interface to implementing class in Java

偶尔善良 提交于 2019-11-28 15:36:27
Is there some shortcut that would allow me after creating method in an interface, select and jump to implementing class of that interface? limc Yes.... in mac, it is Apple + ALT + B . You will need to move your cursor to the interface name before invoking the shortcut. I'm not sure what's the shortcut in PC, for if you right click the interface name -> "Go To" -> "Implementations"... the shortcut is listed there. In PC, it is CTRL + ALT + B : JetBrains navigation documentation . Pakka Pakka In addition to Ctrl + Alt + B mentioned above, you can also use the mouse: Ctrl + Alt + LeftMouseButton

What is the IntelliJ shortcut key to create a javadoc comment?

夙愿已清 提交于 2019-11-28 15:34:50
问题 In Eclipse, I can press Alt + Shift + J and get a javadoc comment automatically generated with fields, returns, or whatever would be applicable for that specific javadoc comment. I'm assuming that IntelliJ IDEA has this feature. Can anyone tell me if there is a keyboard shortcut for this? 回答1: Typing /** + then pressing Enter above a method signature will create Javadoc stubs for you. 回答2: You can use the action ' Fix doc comment '. It doesn't have a default shortcut, but you can assign the

Visual Studio - Shortcut to Navigate to Solution Explorer

为君一笑 提交于 2019-11-28 15:32:46
问题 Is there a keyboard shortcut in Visual Studio (aside from CTRL + TAB and selection) that would take me from inside a document directly into the solution explorer? I don't want to customize any shortcuts or change any default behavior. 回答1: CTRL + ALT + L should shift focus to the Solution Explorer. For visual studio 2012 use: CTRL + [ + S this selects your current document in the solution explorer. 回答2: When using VS 2012 with the Visual C# 2005 keyboard mapping scheme : CTRL + W , S I find

Vim Dvorak keybindings (rebindings :)

大城市里の小女人 提交于 2019-11-28 15:21:24
Although I played with it before, I'm finally starting to use Dvorak (Simplified) regularly. I've been in a steady relationship with Vim for several years now, and I'm trying to figure out the best way to remap the key bindings to suit my newfound Dvorak skills. How do you remap Vim's key bindings to best work with Dvorak? Explanations encouraged! I use one of the more common recommended keybindings : Dvorak it! no d h no h j no t k no n l no s : no S : no j d no l n no L N Added benefits no - $ no _ ^ no N <C-w><C-w> no T <C-w><C-r> no H 8<Down> no T 8<Up> no D <C-w><C-r> Movement keys stay

Changing the case of a string in Eclipse

荒凉一梦 提交于 2019-11-28 15:07:12
How do I make a lowercase string uppercase using Eclipse? I want to select a string and either uppercase it or lowercase it. Is there a shortcut for doing this? Ken Chan By default, the hotkeys: CTRL + SHIFT + Y changes to lowercase. CTRL + SHIFT + X changes to UPPERCASE. Or, on a Mac: ⌘ + ⇧ + Y changes to lowercase. ⌘ + ⇧ + X changes to UPPERCASE. Levent Akdeniz You can see all shortcuts of eclipse by pressing: CTRL + SHIFT + L Caution Continues Help-> Key assist You will get all of eclipse's shortcuts. Eclipse only provides a keyboard shortcut by default. If you prefer to use the menu, you

How to format code in Xcode? [duplicate]

北城余情 提交于 2019-11-28 15:06:12
This question already has an answer here: Code Formatting In Xcode 10 answers I wonder how can I format my code to align it neatly? Does it have a feature similar to Eclipse's ctrl shift f ? Piotr Kochański Select first the text you want to format and then press Ctrl + I . Use Cmd + A first if you wish to format all text in the selected file. Note : this procedure only re-indents the lines, it does not do any advanced formatting. Key combination to format all text on open file: Cmd ⌘ A + Ctrl I Right click (Ctrl + Click) -> Structure -> Re-indent Haven't used eclipse for a while, but, I think

Is there a keyboard shortcut (hotkey) to open Terminal in macOS?

折月煮酒 提交于 2019-11-28 15:03:55
问题 One of my primary tools used for programming is my Terminal. It makes my programming process more efficient when I'm able to quickly open a Terminal window. In Ubuntu, I was using ( window + Alt + T ) to open Terminal. But now I use a Macbook at my programming job. Sometimes I use Spotlight to search "Terminal", and press Enter. I'd like to know if I can assign a keyboard hotkey to do it. Thanks 回答1: I tested the following procedure under OS X 10.11.3 (El Capitan). Launch Automator. Create a

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

我们两清 提交于 2019-11-28 15:03:20
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? 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 in Solution Explorer Aaron Carlson VS2012 added a new command called SolutionExplorer.SyncWithActiveDocument

Visual Studio : short cut Key : Duplicate Line

南楼画角 提交于 2019-11-28 15:03:13
Is there a shortcut for Duplicate Line command in Visual Studio 2008? Some similar examples: in Notepad++ , I can duplicate the current line with: Ctrl + D in EditPlus : Ctrl + J in NetBeans : Ctrl + Shift + ↓ / ↑ in Eclipse , Ctrl + Alt + ↓ / ↑ in Vi/Vim , yy p etc. Wael Dalloul In Visual Studio 2017 (edit) This feature is now built-in in VS2017: Ctrl + E , V duplicates a line if nothing is selected, or duplicates selection. You can assign it to a different key combination, or find it in the menu: See this reference for more information. Pre VS2017, built-in method using clipboard As @cand