keyboard-shortcuts

Move to the end of line character in Vi, past the last character in the line

冷暖自知 提交于 2019-12-05 02:12:12
How come in Vi, when I hit $ , it goes to the last character in the line instead of the end of the line character? How would I go to the end of the line character in one keystroke, and what is the fastest way to delete the end of the line character? How come in Vi, when I hit $ , it goes to the last character in the line instead of the end of the line character? Because that’s sufficient for anything you might want to achieve. How would I go to the end of the line character in one keystroke You basically never need to. You just do different things in the next step depending on what you wanted

eclipse key bindings everywhere

限于喜欢 提交于 2019-12-05 01:54:56
I want to assign an eclipse key shortcut. Say, Ctrl + Shift + F = "File Search". I can assign this in Window -> Preferences -> General -> Keys -> File Search -> Binding: Ctrl + Shift + F I also need to select "When". I can select one of "Editing Java Source", "Editing Java Script Source" etc. Is it possible to assign this key shortcut to be effective everywhere? What I mean is I can be doing anything in eclipse - editing Java, js, xml, etc or I could be in Console window looking at the logs. I will highlight a word I want to search and press Ctrl + Shift + F and eclipse just has to bring up

How to hook Win + Tab using LowLevelKeyboardHook

左心房为你撑大大i 提交于 2019-12-05 01:47:51
In a few words: blocking Win up after Win + Tab makes Windows think Win is still down, so then pressing S with the Win key up for example will open the search charm rather than just type "s"... until the user presses Win again. Not blocking it means the Windows Start menu will show up. I'm in a conundrum! I have no trouble hooking into shortcuts using Alt + Tab using LowLevelKeyboardHook , or Win + Some Ubounded Key using RegisterHotKey . The problem happens only with the Win key using LowLevelKeyboardHook . In the example below, I'm taking over the Win up event when the Win + Tab combination

QAction shortcut doesnt always work

放肆的年华 提交于 2019-12-05 01:09:38
I have a Qaction on a menu item for deleting selected items in one of my views. Here is how i create the action: deleteAct = new QAction( tr("Delete Selected"), this); deleteAct->setShortcut(QKeySequence::Delete); connect(deleteAct, SIGNAL(triggered()), this, SLOT(deleteSelected())); I setup a keyboard shortcut (Delete Key) which should trigger the delectAct action. It works most of the time but at some points it stops working... Does anyone know why the shortcut would stop working? Note: the action still works if i trigger it from the menu item. Its just the shortcut that doesn't... You need

Is there a keyboard shortcut for the method dropdown list in Visual Studio 2010's VB.NET code editor?

萝らか妹 提交于 2019-12-05 00:51:10
In Visual Studio, there is a method dropdown list in VB code editor windows. This is highlighted in the screenshot below. I would like to find out whether there is a default keyboard shortcut to access this list, or if such a keyboard binding can be manually set up (and if so, how)? Ctrl + F2 is assigned as a default shortcut key to move the cursor to Navigation Bar . ( L.H.S is classes dropdown and R.H.S is methods dropdown.) You can use Tab to jump to methods dropdown. The whole combination that you need is Ctrl + F2 + Tab . Hope this will help you. Ctrl + F2 and Tab can access that dropdown

Visual Studio 2015: Ctrl+Shift+8 (View.PopBrowseContext) to navigate back not working?

末鹿安然 提交于 2019-12-05 00:47:25
A keyboard shortcut that I've used frequently going back several Visual Studio versions is Ctrl + Shift + 8 to go back to where I was, after doing a F12 to Go To Definition. In Visual Studio 2015, pressing Ctrl + Shift + 8 doesn't seem to do anything. Opening up Visual Studio 2013 and looking at the Tools | Customize | Keyboard dialog, Ctrl + Shift + 8 is mapped to the command View.PopBrowseContext. In Visual Studio 2015, Ctrl + Shift + 8 has that same command mapping, but the command doesn't seem to work. Is there a way to get the View.PopBrowseContext command to navigate back after doing a

How does the search command `//` work in Vim?

余生长醉 提交于 2019-12-05 00:10:53
After searching for something, if you hit // , you seem to get the next result. How is this different from n ? How should you use it? What does //e match, and what other options are there for // ? The search command is of the following format: /pattern/offset<cr> If the pattern part is left out, the search looks for the last pattern that was searched for. If the offset is left out, no offset is applied. The offset is basically what to do to the cursor once you've found your pattern item. Most vi users are familiar with the variation without an offset, /pax<cr> and the repeat last search, /<cr>

Visual Studio 2012 debug tests keyboard shortcut

余生长醉 提交于 2019-12-04 23:45:56
In Visual Studio 2010 there were keyboard shortcuts to debug all tests, debug tests in context and more. For reference, in VS 2010 the chords were: Debug: All Tests in Solution: Ctrl + R , Ctrl + A Debug: All tests in context: Ctrl + R , Ctrl + T VS2010 also had keyboard commands to just Run All Tests In VS 2012 I found the keyboard command for run all tests, Ctrl + R , A but can't find a keyboard command for debug all tests, which I found to be a really useful command. Am I being dense and missing it? Did they remove the keyboard shortcut? I haven't found much information searching with

vscode: Open file instead of previewing file from quick open

送分小仙女□ 提交于 2019-12-04 22:54:03
When I open up the Command Palette ( Ctrl or Cmd + P ), type in a filename and hit Enter , the file will automatically be opened in Preview mode. Open File Permanently What I want is to have an option to open a file permanently from the Command Palette. I am aware of the "workbench.editor.enablePreviewFromQuickOpen" settings, but that will disable Preview mode. For example, selecting a file in the Command Palette and hitting Ctrl + Enter will open the file as Preview in a new Split view. I am looking for a similar shortcut to open a file permanently. Edit 1 Correction: I meant the Quick Look

How do I use a shortcut to comment out code automatically in Textmate?

我的未来我决定 提交于 2019-12-04 22:46:37
Is there a shortcut to highlight and comment code in textmate, rather than putting in the comments manually? tamasgal If you have the Source bundle installed: ⌘/ If you don't, go to TextMate > Preferences > Bundles and check Source . ⌘/ comment/uncomment selection shift + ⌘ + 7 or instead 7 the key with the slash "/" 来源: https://stackoverflow.com/questions/8256834/how-do-i-use-a-shortcut-to-comment-out-code-automatically-in-textmate