keyboard-shortcuts

shortcut to open method dropdown in xcode

有些话、适合烂在心里 提交于 2019-12-03 02:09:27
问题 I am looking for a way to open the method popup that shows up when you click the navigation-bar in XCode. is there a way to do this by using a shortcut? 回答1: The shortcut is ^6 (a.k.a. Control+6). To change the shortcut go to Xcode-->Preferences...->Key Bindings, and look for the View Menu list. It is called "Standard editor -> Show Document items" 回答2: control+6 . Pres control and 6 together. :) 来源: https://stackoverflow.com/questions/11100364/shortcut-to-open-method-dropdown-in-xcode

Add application launch shortcut in Eclipse?

二次信任 提交于 2019-12-03 01:43:57
I've been programming Android in Eclipse for about a year now and I have always launched my app by right clicking on my project name in the project explorer, followed by "run as", then "Android Application". There has to be a better way... Is there a way to change this (three mouse clicks): "Right click on project" -> "run as" -> "Android Application" To this (one hotkey press): <My favorite hotkey> So I can just press one button to launch my app? Thanks! In preferences, go to General -> keys and search for the Android Application command. You can set a new key combination from here. Eclipse

Collapse all methods in Visual Studio Code

我只是一个虾纸丫 提交于 2019-12-03 01:29:13
问题 In Visual Studio Professional, we have a shortcut key, Ctrl + M Ctrl + O to collapse all methods and properties in a class. How can I do a similar thing in Visual Studio Code? I know there are shortcut keys like Ctrl + Shift + [ , but this does not meet the needs. Is it possible to get the Visual Studio Professional-like behaviour in Visual Studio Code? 回答1: Fold All: Windows: Ctrl + k + 0 Mac: ⌘ + k + 0 Unfold All: Windows: Ctrl + k + j Mac: ⌘ + k + j To see all the shortcuts in the editor

Visual Studio keyboard short-cut to complete default accessors {get; set;}

会有一股神秘感。 提交于 2019-12-03 01:04:39
I am looking for a keyboard short-cut to complete creating the default accessors for a property in a C# class. Something like... I start typing: public int Id Then I press one or more keys, and I endup with: public int Id { get; set; } The shortcut is the trigger "prop": prop tab tab int tab Id tab and you end up with: public int Id { get; set; } Try with propfull , then TAB Twice and you'll get: private int myVar; public int MyProperty { get { return myVar;} set { myVar = value;} } You could also create a custom snippet: <CodeSnippets xmlns="http://schemas.microsoft.com/VisualStudio/2005

How to search for file names in Visual Studio?

时光总嘲笑我的痴心妄想 提交于 2019-12-03 00:58:55
问题 In Eclipse you can search for a file in the project by pressing CTRL - SHIFT - R . Is there a way to do this in Visual Studio ? 回答1: Just for anyone else landing on this page from Google or elsewhere, this answer is probably the best answer out of all of them. To summarize, simply hit: CTRL + , And then start typing the file name. 回答2: The best option now is to install Microsoft Visual Studio add on called Productivity Power Tools (VS 2010 version, VS 2013 version). With this comes "Solution

Multiple-line cursor movements in XCode 4

大憨熊 提交于 2019-12-03 00:42:28
The same question has been asked for Xcode 3 But the solution there is said to not work with Xcode4. And no new solution is available there. How to get a key-binding to move the curser up/down about 10 lines in Xcode 4 ? Blaz Eureka! Inspired by the answer on line duplication , this is how you empower Xcode 4 with multiple-line movement: Go to the folder /Applications/Xcode.app/Contents/Frameworks/IDEKit.framework/Versions/A/Resources Open IDETextKeyBindingSet.plist . Add a new dictionary Customized and two new command (say, Move Down 10 and Move Up 10 ) keys as the screenshot below: Restart

Press alt + numeric in bash and you get (arg [numeric]) what is that?

安稳与你 提交于 2019-12-03 00:29:41
问题 Press alt + numeric in bash and you get (arg [numeric]) what is that? (This type of question is better suited for asking a human, instead of trying to "guess" for the correct terminology to search on the documentation via internet). 回答1: The term you want to google for is: "readline arguments" This will lead to, for example, this chapter from the bash reference manual: You can pass numeric arguments to Readline commands. Sometimes the argument acts as a repeat count , other times it is the

Shortcut key to select word in Eclipse

为君一笑 提交于 2019-12-03 00:18:26
问题 Is there any keyboard shortcut to select a word? Or may be it can be assigned some how? 回答1: Shift + Alt + ↑ selects enclosing elements. Shift + Alt + ↓ reverses Shift + Alt + ↑ . Shift + Alt + ← selects enclosing elements moving up the file. Shift + Alt + → selects enclosing elements moving down the file. 回答2: The quickest way to find any keyboard shortcut in Eclipse is to use Help->Key Assist (or Ctrl + Shift + L ), which will pop up a nice tooltip with keyboard shortcuts and what they do.

What are some useful TextMate shortcuts? [closed]

雨燕双飞 提交于 2019-12-03 00:04:41
问题 As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance. Closed 7 years ago . Macs are renowned (or bemoaned) for having an extensive number of shortcuts. However, OS X itself pales in comparison to the shortcut

Respond to application-wide “hotkey” in Qt

匆匆过客 提交于 2019-12-02 23:50:24
I've got a simple Qt app, and I just want to respond to the F12 key, regardless of which widget has focus. Is there some easy signal or something I can hook in to? I want to use the F12 key to toggle the main window fullscreen on/off. Jérôme I haven't tried, but here is what I would do : Create a QShortcut and make sure its context (with setContext() ) is Qt::ApplicationShortcut . shortcut = new QShortcut(QKeySequence(Qt::Key_F12), parent); shortcut->setContext(Qt::ApplicationShortcut); Then you just need to connect a slot to the QShortcut::activated() signal. If you have a "central widget"