keyboard-shortcuts

VSCode terminal previous commands

試著忘記壹切 提交于 2019-12-04 04:33:46
I've been using the integrated terminal in Visual Studio Code a lot since it was added, but I noticed a very frustrating feature/bug. I am using the Windows 10 Bash terminal, and cannot seem to access the previous command history by using the "Up" arrows. Did this get remapped to another key or does it simply not work? Found the answer by accident, after accidentally hitting a few keys. It seems the most common commands have been mapped to the following defaults: Previous Command: Ctrl + P Next Command: Ctrl + N Cursor Left: Ctrl + B (backwards) Cursor Right: Ctrl + F (forwards) Cursor Home:

Custom keyboard shortcuts

限于喜欢 提交于 2019-12-04 04:29:17
I want my app to support keyboard shortcuts. Many devices, such as Asus Transformer have external keyboard which has Ctrl key (available on API Level 11). I've made some code, to check if Ctrl key works in emulator: @Override public boolean dispatchKeyEvent(KeyEvent event) { if(Build.VERSION.SDK_INT>10 && event.getAction()==KeyEvent.ACTION_DOWN && event.isCtrlPressed()){ String actionType="NONE"; final int keyCode = event.getKeyCode(); switch(keyCode){ case KeyEvent.KEYCODE_C: actionType = "COPY"; break; case KeyEvent.KEYCODE_V: actionType = "PASTE"; break; case KeyEvent.KEYCODE_X: actionType

Autohotkey: Send 5 digit hex unicode chars

北慕城南 提交于 2019-12-04 03:58:56
问题 I have been trying to find a way to remap my keyboard and send 5-digit hex unicode chars, the method described here: ahk Send only supports 4-digit hex codes {U+nnnn}, I know that in the past, autohotkey didnt support unicode natively so it was needed some functions in order to do that, maybe thats the solution for me. Example: #If GetKeyState("CapsLock","T") +u::Send {U+1D4B0} The results from that is 풰 instead of 𝒰, and the code for 풰 is {U+D4B0}, meaning AHK is reading only the last 4

PHP Eclipse - add Key Binding for Watch

狂风中的少年 提交于 2019-12-04 03:47:42
问题 I have to admit, for a FREE PRODUCT, Eclipse really delivers. However, sometimes I don't understand certain missing features... Eclipse has over ELEVEN HUNDRED different key bindings. (source: rigel222.com) I would like to use one of those KeyBindings to add a "Watch" Expression to the expressions window, while debugging. (source: rigel222.com) Here is an additional screenshot showing that I already understand the "filter" process. I have set key-bindings for everything I could find

How to define readable shortcuts for international keyboards?

喜你入骨 提交于 2019-12-04 03:38:28
问题 I thought I can use the string representation of a keyboard key to configure shortcuts, i.e. let somebody define a keystroke in a resource bundle and pass that value directly to javax.swing.KeyStroke.getKeyStroke(String) . But this does not work for international keyboards, e.g. arabic. There the keyboard keys are only high level key typed events, but shortcuts need to be defined as low level key pressed events with their key code representation. If one knows the according key code one can

Shortcut to collapse to definitions except regions

不打扰是莪最后的温柔 提交于 2019-12-04 03:29:05
In vs2008, how can I (possibly with a macro) assign a shortcut key to collapse to definitons but leave regions expanded (they must expand if collapsed)? EDIT: I hate regions but my co-workers does not (: So I want this to avoid the regions used by them. I read jeff's post. Ctrl M + O is what I really want to do, if there were not regions. I believe I have finally got the answer that I've been looking for, and I think it might help you as well, @Serhat. You said: I read jeff's post. Ctrl M + O is what I really want to do, if there were not regions. That was exactly what I was thinking to myself

Javascript - get key description for any keyboard layout

孤街醉人 提交于 2019-12-04 03:10:25
For a rich web application, I need keyboard shortcuts. Because there are many different keyboard layouts, they have to be configurable. Unfortunately, I can't figure out a way to map keyboard events to human-readable shortcut names such as Ctrl + Alt + Y or Alt + \ . The keypress event is useless since it doesn't fire for all keys. Here are some properties of keydown events: charCode : Works only for printable characters. Deprecated , according to MDN code : Works, but ignores the keyboard layout. When I press Z, I get code: "KeyY" on my German keyboard. key : Works, but gives different

What is the command for block select in Visual Studio 2008

无人久伴 提交于 2019-12-04 02:52:01
In visual studio you can select a block of text by holding down Alt when when selecting text with the mouse. This is very useful for selecting a column of data or text as opposed to the entire line. In Visual Studio 2003-2005 this operation could be performed by holding Alt + Shift in conjunction with the arrow keys but the keyboard option no longer works in VS2008. Can anyone tell me the editor command to assign to a keyboard shortcut? Is this keyboard shortcut just moved to something else in VS 2008? adrianbanks The Alt + Shift + arrow key combination still works in VS2008 (at least it does

WPF - Send Keys Redux

我的未来我决定 提交于 2019-12-04 01:49:25
So, I'm using a third-part wpf grid control that is hard-coded to only accept certain keystrokes to perform short-cut reactions and one of those is Shift-Tab. However, my user-base is used to hitting up arrow and down arrow and telling them 'no' isn't an option right now. So my only option I think is to intercept the preview key down and send a different key stroke combination. Now, I am using the following code that I found on here to send a Tab when the user presses the Down arrow: if (e.Key == Key.Down) { e.Handled = true; KeyEventArgs eInsertBack = new KeyEventArgs(Keyboard.PrimaryDevice,

Keyboard shortcut to move cursor to last edit position in Visual Studio

眉间皱痕 提交于 2019-12-04 00:12:38
In Visual Studio, is there a keyboard shortcut to navigate (move cursor) to the last edited position (like PyCharm's Ctrl + Shift + Backspace )? The CTRL + - shourtcut moves to the last position (not the last edited position), which is less useful for me. Found a pending feature request here: http://visualstudio.uservoice.com/forums/121579-visual-studio/suggestions/4987860-feature-request-for-jumping-back-to-the-last-chang In my VS I can use CTRL + - . I am not sure if this Works in all Versions and With different keyboard layout. You can do Ctrl + z , Ctrl + y . This does an undo/redo, so