keyboard-shortcuts

Is there a shortcut for Sublime Text to find an open file (Eclipse Ctrl + E)?

ぃ、小莉子 提交于 2019-12-30 11:06:29
问题 Ctrl + P of Sublime Text lets me find a file from all project files. However, there are too many duplicated names. I’m looking for a shortcut key like Ctrl + E in Eclipse, so that I just need to find the file in my opened file. That would save a lot of key striking. Probably called “sidebar filter”? Does not matter if it’s 2 or 3. 回答1: Sounds easy to implement just select Tools >> Developer >> New Plugin... and add the content: import sublime_plugin import os def _show_name(name): return ([os

Emacs keystroke representation confusion

夙愿已清 提交于 2019-12-30 10:55:44
问题 I usually define new keybindings in emacs using "C-x (" --> (command kmacro-start-macro) "C-x )" --> (kmacro-end-macro) (name-last-kbd-macro) (insert-kbd-macro) But the code it generates looks different than the code I read and modify in various major / minor modes and other emacs utilities. I recently came across this blog post that clears up some of my confusion. Is there an emacs tool that simplifies keystroke representation ? Ideally one that translates from ahk keystroke notation to any

In Mac how to switch between the projects' window in AndroidStudio?

北战南征 提交于 2019-12-30 08:07:05
问题 My OS is Mac. I have opened several projects in AndroidStudio, sometimes I wanted to switch between the projects to choose a project, is there any keyboard shortcuts to do it just like "command/ctrl + tab" ? 回答1: Use Cmd + ` (Cmd + Backtick) . It switches between all the projects that are open on Android Studio. 回答2: In Android studio command to switch between diffrent project windows (i.e. windows those are not minimised) is as following : ⌘` -> (i.e command + backtick) -> for next project

Sublime Text - command to make first character uppercase

雨燕双飞 提交于 2019-12-30 08:02:39
问题 There are upper_case and lower_case commands: { "keys": ["ctrl+k", "ctrl+u"], "command": "upper_case" }, { "keys": ["ctrl+k", "ctrl+l"], "command": "lower_case" }, I'm searching for command to capitalize the first letter of string, which can be assigned to custom shortcut. 回答1: Under Edit -> Convert Case is the Title Case option. The following key binding should work: { "keys": ["ctrl+k", "ctrl+t"], "command": "title_case" } Add this to your custom keymap, and it will override the default

jQuery hotkeys: prevent IE from running its own shortcuts, like Alt+H

血红的双手。 提交于 2019-12-30 07:33:11
问题 Using jQuery hotkeys, I try to bind shortcuts like Alt + H , Alt + C to some specific actions in my site. The event propagation stops (as it should) in all browsers but IE. First of all, is it possible to achieve this? If so, how? Here is a code sample: jQuery(document).bind('keydown', 'Alt+H', function (event) { $this.toggleMenu( 'H' ); if(jQuery.browser.msie) { event.cancelBubble = true; } else { event.stopPropagation(); } return false; } ); In IE, the line $this.toggleMenu( 'H' ); gets

Notepad++: Adding a new shortcut for an existing command

社会主义新天地 提交于 2019-12-30 07:24:09
问题 I want to make "Ctrl+G" to open the find dialogue, just as Ctrl+F" (so both shortcuts open the same "find dialogue"). I know I can modify the existing shortcuts of commands through "macro > modify shortcut", but it allows changing the shortcut only, not the "Name" of the command (shaded). 回答1: Here is how you can add a second keybinding to the find dialog. Notepad++ does not offers this out of the box. We can only assign one keybinding. We need a way to add a second find dialog . One way I

Eclipse : Link with editor keyboard shortcut?

倾然丶 夕夏残阳落幕 提交于 2019-12-30 06:01:15
问题 Is there a keyboard shortcut for "Link with editor" feature in Eclipse? if not, is there any way, where i can map ui elements on eclipse with keyboard shortcuts? (custom plugins/RCP code etc?) 回答1: There is not by default, but you can define this yourself. Go into Preferences -> General -> Keys, and then type "link" into the search box. You want the "Toggle Link with Editor" command. You can then define the key binding by filling in the "Binding" box below. 来源: https://stackoverflow.com

Can Emacs differentiate between ctrl-r and ctrl-shift-r?

雨燕双飞 提交于 2019-12-30 05:37:20
问题 I'd like to bind Ctrl + R to 'isearch-backward and bind Ctrl + Shift + R to 'tags-apropos but I can't distinguish between the two key presses. Can emacs differentiate between Ctrl + R and Ctrl + Shift + R ? What should go into my .emacs file to allow this keybinding? 回答1: Yes. (global-set-key (kbd "C-r") 'isearch-backward) (global-set-key (kbd "C-S-r") 'tags-apropos) The way to figure out the answer to this kind of question is to do help on a key C-h k , and type the keystrokes you're

Disabling single line copy in Visual Studio

柔情痞子 提交于 2019-12-30 05:32:08
问题 Is there anyway to disable the rather annoying feature that Visual Studio (2008 in my case) has of copying the line (with text on it) the cursor is on when CTRL - C is pressed and no selection is made? I know of the option to disable copying blank lines. But this is driving me crazy as well. ETA: I'm not looking to customize the keyboard shortcut. ETA-II: I am NOT looking for "Tools->Options->Text Editor->All Languages->Apply cut or copy to blank lines...". 回答1: If you aren't willing to

how to implement shortcut key combination of CTRL or SHIFT + <letter> through javascript?

末鹿安然 提交于 2019-12-30 04:32:07
问题 ASP.NET 2.0 web application, how to implement shortcut key combination of CTRL + Letter , preferably through JavaScript, to make web application ergonomically better? How to capture multiple-key keyboard events through JavaScript? 回答1: The short answer is that you use Javascript to capture a keydown event and use that event to fire off a function. Relevant articles: http://www.openjs.com/scripts/events/keyboard_shortcuts/ http://udayms.wordpress.com/2006/03/17/ajax-key-disabling-using