keyboard-shortcuts

How do I capitalize the first letter of a word in Vim?

我只是一个虾纸丫 提交于 2019-11-30 08:19:05
For a long time I've known that I can use ~ in Vim to toggle the case of a character. But is there a way to map a key to capitalize a word and go back to the previous position? For example: I like to drink Coca co[l] If my cursor is at "l" and I realize I need to make the "c" capitalize as well, currently, I need to do: <C-c> b ~ ll i Is there a way to map a single key to make the first letter of the word under cursor to be capitalized and keep the cursor at original position? :nmap <whatever> m`b~`` Personally, this is exactly the kind of thing I prefer not to make a macro for. There's no

Visual Studio keyboard shortcut for Method Name combobox

此生再无相见时 提交于 2019-11-30 08:05:20
问题 In VS 2008 (and prior versions as well I believe) when in the code editor there are 2 comboboxes at the top of the editor. On the left is a Class Name combobox and on the right is a Method Name combobox. Those are the tooltip descriptions but are a little misleading for instance the Method Name box shows all the methods, properties, events etc in the current file. Do these features have official names? I use the method name combobox a lot because I'll often know that there's a property or

How to create a shortcut for user's build system in Sublime Text?

北城余情 提交于 2019-11-30 07:34:59
问题 I've just created a build system named XeLaTeX by creating a file named XeLaTeX.sublime-build in the User directory of Sublime Text, whose content is: { "cmd": ["xelatex.exe","-synctex=1","-interaction=nonstopmode","$file_base_name"] } What should I do, if I want to bind my F1 key to this specific build system? Note: Ctrl + B , the default build system should not be influenced. That is to say, I could use Ctrl + B to use the default one, and the key F1 , the new system, is also available at

Ruby on Rails keyboard shortcuts

北城余情 提交于 2019-11-30 07:29:20
does anyone know how to set-up keyboard shortcuts using Ruby on Rails on my website? For example if a user want to interact with the site using keyboard shortcuts instead of clicking buttons/links how would I do this? Daniel Vandersluis The simplest way is to set a value for the accesskey attribute for your elements. If you wanted to do this through Rails, you could do this by passing an extra option to the submit_tag helper method, like so: <%= submit_tag("Save and Refresh", :accesskey => "R") %> // Equivalent to <input type="submit" value="Save and Refresh" accesskey="R" /> Which will cause

Disable use of MacVim keyboard shortcuts

末鹿安然 提交于 2019-11-30 07:11:31
Is there any way to disable keyboard shortcuts in MacVim? I mean the shortcuts like Cmd + s for example, I want to convince myself to use things like :w , but I can't do so if I can save the file using Cmd + s , you get me? But I of course, still want to use the GUI, so is there any way to disable these, without stoping using the MacVim GUI? Thanks for your help. BTW I made a Google search and wasn't able to find an answer. EDIT: Following @ChrisJohnsen's suggestion, I have already tried the following with no success: if has('gui_running') macmenu File.Save key=<nop> macmenu File.Save\ As\.\.\

WebBrowser keyboard shortcuts

别等时光非礼了梦想. 提交于 2019-11-30 07:08:18
I have a WebBrowser control displaying some HTML. I want the user to be able to copy the entire document, but not do anything else. I've set the IsWebBrowserContextMenuEnabled and WebBrowserShortcutsEnabled properties to false , and I want to handle KeyUp and run some code when the user presses Ctrl+C. How can I do that? The WebBrowser control doesn't support keyboard events. I tried using the form's KeyUp event with KeyPreview , but it didn't fire at all. EDIT : Here's my solution, inspired by Jerb's answer. class CopyableWebBrowser : WebBrowser { public override bool PreProcessMessage(ref

shortcut for 'update to HEAD'

会有一股神秘感。 提交于 2019-11-30 07:06:38
is there any way to have either shortcut or icon for svn Update to HEAD of one project (not all of them) in eclipse? It would make my life much much easier. I have few php projects though. Time to time I click 'commit' by accident. Running Eclipse for PHP Developers - Helios release - on OS X. derio I'm posting this to help anyone interested since I got a lot of grief before figuring this out.. You have to go to Settings > General > Keys and bind the shortcuts as the others have said. I have: Commit: Ctrl + Alt + C Update to HEAD: Ctrl + Alt + U Synchronize with Repository: Ctrl + Alt + S ,

Override the bookmark shortcut (Ctrl+D) function in Chrome

百般思念 提交于 2019-11-30 06:47:08
问题 Is it possible to override the Ctrl + D ? I want to, for example console.log or something, and not add the links to the bookmarks. 回答1: Shortcuts can be overridden using the chrome.commands API. An extension can suggest a default shortcut (eg. Ctrl+D) in the manifest file, but users are free to override this at chrome://extensions/ , as seen below: Usage This API is still under development and only available at the Beta and Dev channels, and the Canary builds More info . It will probably

multiple “commands” in a single Sublime Text 2 user keymap shortcut

℡╲_俬逩灬. 提交于 2019-11-30 06:39:42
Is there a way to have multiple "commands" associated with one shortcut? I have these two shortcuts. First shortcut makes the window on the left larger than the right one (in a 2 column view) and the next shortcut puts the focus on the first window. I tend to forget one or the other shortcut when coding quickly. { "keys": ["super+alt+left"], "command": "set_layout", "args": { "cols": [0.0, 0.66, 1.0], "rows": [0.0, 1.0], "cells": [[0, 0, 1, 1], [1, 0, 2, 1]] } }, { "keys": ["ctrl+alt+left"], "command": "focus_group", "args": { "group": 0 } } This question makes me sound like i'm lazy but i'd

How to navigate to the last cursor position in Eclipse?

余生颓废 提交于 2019-11-30 06:14:47
问题 Recently, I switched from Visual Studio to Eclipse. Now I am missing the shortcut for navigating to the last cursor position in Eclipse. In Visual Studio, the same can be done with the help of the Ctrl + - shortcut. How do I do this in Eclipse? 回答1: Go to Preferences / General / Keys . You'll be able to see or edit the bindings for: Backward History : default is Alt ← Forward History : default is Alt → You may also use those shortcuts (and see the key bindings) in the toolbar: 回答2: There is