keyboard-shortcuts

Bash: call script with customized keyboard shortcuts?

随声附和 提交于 2019-12-20 10:27:43
问题 Lets say I have a script, " myscript.sh ", with contents being simply echo $PWD . I'd like to bind somehow this script to a key combo in bash ( gnome-terminal ) - so that when I press this key combination, the output of " myscript.sh " is inserted ("pasted") at the cursor position in the terminal. Apparently, bash history and line manipulation is handled by readline - and the references I got for bash keyboard shortcuts, do reference readline : bash keyboard shortcuts Bash Reference Manual:

Sublime Text 2: how to position cursor at begin/end of buffer?

此生再无相见时 提交于 2019-12-20 10:22:38
问题 I feel silly having to ask what seems like a basic question. I've Googled plenty, and I've examined the Default(OSX).sublime-keymap file, but I can't figure out: How can I make the cursor jump to the beginning/end of the current buffer in Sublime2 on OSX? Home/End scroll to the top/bottom respectively, but they do not position the cursor at the begin/end of the buffer. Surely there is a way to do this. Some apps (e.g. Intellij) use CMD+Home/End for this, but that doesn't work either. 回答1:

How vscode compact multiline to a singleline?

风格不统一 提交于 2019-12-20 10:16:55
问题 I have 4 lines like this in vscode: 1 line; 2 line; 3 line; 4 line; Does vscode have a shortcut that quickly compact 4 lines to 1 line like this: 1 line; 2 line; 3 line; 4 line; 回答1: Select your code => F1 => "Join Lines" You can also create a keyboard shortcut for this command editor.action.joinLines Default shortcut on Mac is Ctrl + J 回答2: It seems vscode's "Join Lines" keyboard shortcut in macOS is ctrl + j : 来源: https://stackoverflow.com/questions/45204617/how-vscode-compact-multiline-to

xcode All-in-one layout: keyboard shortcut to switch between project and debug page?

天涯浪子 提交于 2019-12-20 10:10:35
问题 When you configure xcode to use the All-in-one layout, a toggle appears to allow you to switch between project and debug 'mode' (the IDE calls these pages). Is there a keyboard shortcut to perform the toggle? 回答1: Project: Cmd + 0 (zero) Build: Cmd + Shift + B Debug: Cmd + Shift + Y Found this here: http://www.cocoabuilder.com/archive/xcode/252986-keyboard-shortcut-for-next-page-in-all-in-one-layout.html More shortcuts: http://cocoasamurai.blogspot.com/2008/02/complete-xcode-keyboard-shortcut

Cocoa global shortcuts?

♀尐吖头ヾ 提交于 2019-12-20 09:38:38
问题 I want to create a global shortcut for my app. I've used the 'cool new way' of doing this with the addGlobalMonitorForEventsMatchingMask method. The problem is, my events don't get "consumed": my shortcut includes the spacebar, so whenever I use the shortcut, Quicklook pops up when I'm in the Finder. How can I prevent this from happening? I know it's possible, because many apps, for example the Bowtie iTunes controller app, do it. 回答1: addGlobalMonitorForEventsMatchingMask: is not a suitable

Change shortcut for 'switch to markup' in Visual Studio 2010

不打扰是莪最后的温柔 提交于 2019-12-20 09:06:21
问题 How do I switch the shortcut for 'toggle to markup'? Shift + F7 is toggle to designer. In Visual Studio 2008 I can toggle between the code-behind and the markup with F7 . I got used to it and want to have the same shortcut in Visual Studio 2010 Beta2. How can I achieve that? 回答1: In 2008 you could go into Tools --> Options --> Keyboard and in the Press Shortcut keys field you could type a shortcut and it would tell you what its currently mapped to. In 2008 its mapped to View.ToggleDesigner.

VIM: available shortcuts?

[亡魂溺海] 提交于 2019-12-20 08:49:37
问题 I use many shortcuts for my work in vim. Other shortcuts are taken by plugins. Sometimes I would like to add a shortcut for a new command but note afterwards that the shortcut was already taken. Is there a way to see a list of all available shortcuts in VIM? (all ctrl-shift-alt shortcuts) 回答1: Type :help index to see the mappings (shortcuts as you name them) and commands defined by vim itself. Type :map to see the mappings defined by your vimrc and plugins. Type :verbose map to know where

Go to current executing statement in Visual Studio while Debugging

烈酒焚心 提交于 2019-12-20 08:46:40
问题 While debugging in Visual Studio sometimes we wander far away from the current executing statement. We could tread our way back using Call Stack window. Is there a shortcut to go back to the current executing statement in Visual Studio? 回答1: In the Debug Context Menu, there's a "Show Next Statement" option that should do what you want. If you've got the default General Development Settings applied, the default key binding for this is Alt + Num * . To see what it is in your settings, go to

How do I select individual words of a camelized word in IntelliJ IDEA

可紊 提交于 2019-12-20 08:26:52
问题 What is the shortcut in IntelliJ IDEA to move across or select individual words of a camelized word? Lets say I have aLongMultiWordVariableName, I want to be able to move the cursor to each word for editing or select parts of the variable. Eclipse has a shortcut to do this Ctrl + ← / → for move and Ctrl + Shift + ← / → for selection. 回答1: IDEA has the same keystrokes as Eclipse for camel-case words, but you have to have the CamelHumps option turned on (it's in Settings -> Editor -> General ->

Eclipse's Ctrl+click in Visual Studio?

半世苍凉 提交于 2019-12-20 08:21:10
问题 After working for a few days with Eclipse Java I totally got addicted to pressing Ctrl and clicking on an identifier to go to its definition. Since then I've been looking for a way to achieve this in Visual Studio as well. I realize VS has right click, Go to definition, and that F12 does the same. I also realize that Visual Assist does something similar with Alt + G . Yet none of these are as perfect as Ctrl + click. I've actually tried my luck for a few hours trying to write a VS plugin to