keyboard-shortcuts

VS Code - find panel/view context name for shortcut 'when' expression

大城市里の小女人 提交于 2021-02-20 04:08:54
问题 I'm trying to add some shortcuts to my VS Code instance and I want to scope them using the when expression to avoid conflicts. Alas, I'm struggling to find the right context name to use in the expression to achieve what I want. I've searched the documentation and found that a number of them are listed here: https://code.visualstudio.com/docs/getstarted/keybindings#_contexts But, as the documentation says: The list above isn't exhaustive and you may see some when contexts for specific VS Code

Android development: hook shortcut on keyboard when phone app activity is focused

五迷三道 提交于 2021-02-19 03:09:19
问题 It's a specific question and I've done a bit of Android development before, but not so deep into the system management. So I need to create an app which run in background (this part is OK) and to launch automatically an activity of the app when a special shortcut (let's say #123*6) is typed from the phone app software keyboard on the phone. Can you please indicate me if it's possible, and if yes, what API/Component I should use? Can't find something relevant on the Web. 回答1: Ok I finally got

IPython 5.0 and key bindings in console

醉酒当歌 提交于 2021-02-18 08:57:53
问题 The new release of IPython does not depend any more on readline but uses the pure Python library prompt-toolkit , solving maintenance problems on Apple's and Windows' systems. A new feature is the ability to edit a multi-line code block, using the cursor keys to move freely in the code block — with this power it comes, at least for me, a problem: because a ret inserts a new line in your code, to pass the whole block to the interpreter you have to use the shortcut alt + ret or possibly the

Add shortcut key for multiple plugins in Sublime Text 3

…衆ロ難τιáo~ 提交于 2021-02-11 15:37:02
问题 I'm using CodeFormatter and SassBeautify plugins in Sublime Text 3 in order to provide syntax highlighting and formatting for .scss files as well as .js/.html files. I've been able to set up shortcut keys for either plugin, but not to work for both, depending on the type of file I'm in. [{ "keys": ["ctrl+alt+f"], "command": "sass_beautify" }, { "keys": ["ctrl+alt+f"], "command": "code_formatter" }] Can someone suggest how do to it? I've tried to understand "contexts" but not well enough to do

Add shortcut key for multiple plugins in Sublime Text 3

我的梦境 提交于 2021-02-11 15:36:09
问题 I'm using CodeFormatter and SassBeautify plugins in Sublime Text 3 in order to provide syntax highlighting and formatting for .scss files as well as .js/.html files. I've been able to set up shortcut keys for either plugin, but not to work for both, depending on the type of file I'm in. [{ "keys": ["ctrl+alt+f"], "command": "sass_beautify" }, { "keys": ["ctrl+alt+f"], "command": "code_formatter" }] Can someone suggest how do to it? I've tried to understand "contexts" but not well enough to do

Add shortcut key for multiple plugins in Sublime Text 3

末鹿安然 提交于 2021-02-11 15:34:22
问题 I'm using CodeFormatter and SassBeautify plugins in Sublime Text 3 in order to provide syntax highlighting and formatting for .scss files as well as .js/.html files. I've been able to set up shortcut keys for either plugin, but not to work for both, depending on the type of file I'm in. [{ "keys": ["ctrl+alt+f"], "command": "sass_beautify" }, { "keys": ["ctrl+alt+f"], "command": "code_formatter" }] Can someone suggest how do to it? I've tried to understand "contexts" but not well enough to do

What is keyboard hook?

三世轮回 提交于 2021-02-11 14:04:26
问题 I was reading the Doc of Autohotkey and then I was not able to understand the meaning of the phrase 'keyboard hook' or 'mouse hook'. this is the text: " The $ prefix has no effect for mouse hotkeys, since they always use the mouse hook. It also has no effect for hotkeys which already require the keyboard hook " URL: https://www.autohotkey.com/docs/Hotkeys.htm 回答1: 1 - A Keyboard Hook or Mouse Hook that Means: that you can monitor/receive all the keyboard keypress values or that you monitor

Is it possible to add a custom shortcut in Jupyter Notebook?

末鹿安然 提交于 2021-02-11 12:35:53
问题 I would like to add a markdown cell in Jupyter Notebook using a shortcut, since adding a new cell and changing it to Markdown cell takes so much steps and feels painstaking at times. But it seems that there is no such shortcut; so now I'm searching for a way, if any, to add a custom shortcut in Jupyter Notebook. Is it possible to define a custom shortcut? 回答1: Jupyter has a way to customize keyboard shortcuts. However, I'm not sure if what you're asking is available. I don't find it that

How to move caret to console in pycharm?

那年仲夏 提交于 2021-02-10 06:48:55
问题 Is it possible to have a keyboard shortcut to move the caret from editor to console and back in pycharm? I can switch the focus between editor and console using CTRL+TAB, but that doesn't allow me to start typing in the console unless I click in it. I am using the linux community distribution. 回答1: I'm on MacOS and PyCharm 2018.2. Doing Ctrl+Tab+P opens up console and focuses on it so I can immediately start typing. Update: You can also set your own key map: Tool Windows/Python Console .

Java - How can i select all rows in JTable using Command+A shortcut in Mac?

一笑奈何 提交于 2021-02-10 05:13:47
问题 I have many tables in my Java application. When i click "Ctrl + A" in Mac OS X, it selects all rows inside the current table. I wonder if i can change the default shortcut to use "Command + A" instead to select all the rows in the table ? I am trying to do this inside the EventQueue class to be applied automatically on all the tables in my application. 回答1: Swing uses Key Bindings to map KeyStrokes to Actions . So you can add another binding to map "Command A" to the existing "Control A"