keyboard-shortcuts

Override Ctrl-TAB in EMACS org.mode

爷,独闯天下 提交于 2019-11-30 11:44:16
I would like to use Ctrl + Tab in EMACS for my own use, but Emacs org mode already has this bound. How can I use my own binding instead of the org-mode binding. In my .emacs file I use: (global-set-key (kbd "<C-tab>") 'switch-view ) and it works everywhere except in org-mode paprika The key binding you describe is defined in org.el like this: (org-defkey org-mode-map [(control tab)] 'org-force-cycle-archived) This means that it is only valid in org-mode-map , one of org-mode's local keymaps. The following code adds a hook that is run when org-mode starts. It simply removes that key binding

How to open the lightbulb via shortcut?

浪子不回头ぞ 提交于 2019-11-30 11:44:03
问题 Some languages support code actions which display a lightbulb providing quick fixes for a warning/error (See https://code.visualstudio.com/docs/editor/editingevolved#_code-action for more information). I like this feature but I don't like to click on the lightbulb. Unfortunately I can't find a shortcut for opening the lightbulb at the current cursor position . How can I create such a shortcut? I tried to create a shortcut for vscode.executeCodeActionProvider by creating a custom keybinding

Why does < C-a> (CTRL+A) not work under gvim on windows?

ぃ、小莉子 提交于 2019-11-30 11:21:32
问题 I'm trying to use the < C-a> ( CTRL + A ) shorcut under vim to increment a variable under the cursor. This works fine under vim running on Linux. However when I try to do this in gvim under windows it "selects all" (i.e. highlights or visually selects all text in the current window). How can I change this behaviour or alternatively how can I recover the increment variable functionality (e.g. perhaps with a different key mapping)? 回答1: This is because of mswin.vim that is sourced by the

Visual Studio 2010 extension for Go To Interface Implementation? [duplicate]

旧时模样 提交于 2019-11-30 10:57:26
Possible Duplicate: How do you quickly find the implementation(s) of an interface’s method? I like ReSharper's Go To Implementation feature but I often keep ReSharper disabled. Is there an equivalent extension for Visual Studio 2010? I'm looking for the extension for this little "go to implementation" too. But unfortunately I couldn't find any. May be we will have to wait next version of visual studio or enable ReSharper back (which in my opinion, eating too much resources) Well the best solution for me right now is to use "Call Hierarchy" feature of VS2010. Just follow my instruction below

Undo closed tab in Eclipse?

寵の児 提交于 2019-11-30 10:32:14
问题 I was wondering if it were possible in Eclipse PDT to reopen a closed tab by mistake. For example in Firefox I can do Ctrl + Shift + T . 回答1: Yes it's possible. Close a tab and hit the left yellow arrow in the Eclipse menu bar above. You can adjust the keyboard shortcut for that in the eclipse preferences under General > Keys . On Mac it's ⌘ + [ 回答2: Try Alt + left arrow that will go backward in history - if tab is closed it will reopen it. 回答3: Navigating back through the edit history does

Eclipse keyboard shortcut to indent source code to the left?

柔情痞子 提交于 2019-11-30 10:16:56
问题 I've looked in the keyboard shortcuts list in Eclipse but can't find keyboard shortcut to indent source code to the left. Surely there is one? 回答1: In my copy, Shift + Tab does this, as long as I have a code selection, and am in a code window. 回答2: Ctrl + I (indentation). See at http://www.rossenstoyanchev.org/write/prog/eclipse/eclipse3.html Search for Indentation. 回答3: You can use Ctrl + Shift + F which will run your formatter on the file and fix indentations along the way also. 回答4: I

Making iTerm to translate 'meta-key' in the same way as in other OSes

旧城冷巷雨未停 提交于 2019-11-30 10:04:12
问题 In bash shell with emacs key-binding, you can use key combination like M-f, M-b to move one word forward or backward on the shell prompt respectively. Usually, the meta key is mapped to Alt key on Windows and Linux. However, in iTerm, I could not find a way to map this meta key to either Option or Command key on my MacBook Pro. It seems that in OS X, the meta key is by default mapped to ESC key. So you can use ESC-f, ESC-b on iTerm. However, ESC key is apparently not practical to use. In

vim cant map <C-Tab> to :tabnext

家住魔仙堡 提交于 2019-11-30 09:23:09
I have the following mappings in my .vimrc: map <C-S-Tab> :tabprevious<CR> nmap <C-S-Tab> :tabprevious<CR> imap <C-S-Tab> <Esc>:tabprevious<CR>i map <C-Tab> :tabnext<CR> nmap <C-Tab> :tabnext<CR> imap <C-Tab> <Esc>:tabnext<CR>i I want to switch the tabs with Strg+Tab forward and with Strg+Shift+Tab backward. Why does this mapping not work? nfm Are you using xterm ? If so, you can't map ctrl-tab without a lot of hackery. xterm and many other terminal emulators don't recognise ctrl-tab and simply send a tab character. See my answer here for more details: Mapping <C-Tab> in my vimrc fails in

Stop PHPStorm from cutting/copying the entire line if nothing is selected

我们两清 提交于 2019-11-30 09:09:15
If I set the caret on a line and accidentally press Ctrl X or Ctrl C instead of Ctrl S , then the entire line is cut/copied, since there is no selection. This can be very annoying, and can often times destroy code in the clipboard which I wanted to paste. I'd expect nothing to happen if nothing is selected. How can this be turned off? Go to Registry screen: Help | Find Action... and search for registry there Once there -- find and activate editor.skip.copy.and.cut.for.empty.selection entry. 来源: https://stackoverflow.com/questions/27697758/stop-phpstorm-from-cutting-copying-the-entire-line-if

How do I create compound keyboard shortcuts in a Windows Forms application?

蓝咒 提交于 2019-11-30 08:54:06
I want to create a component that allows us to have compound keyboard shortcuts associated with an arbitrary command, like the Visual Studio IDE and Microsoft Office do. That is, keyboard shortcuts consisting of a sequence of multiple keystrokes, such as Ctrl + W + C . In Visual Studio this opens the class-view. When the first set of the keys is pressed ( Ctrl + W ) the message "(Ctrl + W) was pressed. Waiting for the second key of the chord..." appears in the status bar. In answer to the question of keyboard chords specifically, I do not believe there is a ready-made option available to you