keyboard-shortcuts

Collapse all methods in Visual Studio Code

社会主义新天地 提交于 2019-12-02 13:48:12
In Visual Studio Professional, we have a shortcut key, Ctrl + M Ctrl + O to collapse all methods and properties in a class. How can I do a similar thing in Visual Studio Code? I know there are shortcut keys like Ctrl + Shift + [ , but this does not meet the needs. Is it possible to get the Visual Studio Professional-like behaviour in Visual Studio Code? Pere Pages Fold All: Windows: Ctrl + k + 0 Mac: ⌘ + k + 0 Unfold All: Windows: Ctrl + k + j Mac: ⌘ + k + j To see all the shortcuts in the editor in Mac, just type: ⌘ + k + s All shortcuts kept up to date by the Visual Studio Code team: Visual

What are the most-used vim commands/keypresses?

醉酒当歌 提交于 2019-12-02 13:46:09
I'm a Ruby programming trying to switch from Textmate to MacVim, and I'm having trouble wading through the gargantuan lists of things you can do in VIM and all of the keypresses for them. I'm tired of hearing "You can use 'I' for inserting text, or 'a' for appending text after the character, or 'A' for appending text at the end of the line, or…" I can't imagine everyone uses all 20 different keypresses to navigate text, 10 or so keys to start adding text, and 18 ways to visually select an inner block. Or do you!? My ideal cheat sheet would be the 30-40 most-used keypresses or commands that

Is there a single keyboard shortcut to switch between the two most recently visited tabs in Xcode?

左心房为你撑大大i 提交于 2019-12-02 12:53:04
问题 When I'm coding I often like to jump back and forth between the two most recently visited open tabs in an IDE. Is there any single keyboard shortcut in Xcode for that? In e.g. Android Studio for macOS you can use Ctrl + Tab to achieve this like in many other IDEs (and analogously, switching between the two most recently visited applications in macOS is achieved by using Alt + Tab ). But if I press Ctrl + Tab once in Xcode and then do it again later, I don't jump back and forth between the two

PyCharm: Switch between Code and Run/Terminal with CapsLock-u and CapsLock-n

你。 提交于 2019-12-02 07:10:59
问题 I would like to switch between Code and Run/Terminal with CapsLock-u and CapsLock-n in PyCharm. On my keyboard u is at the top, and n is at the bottom, this gives me a good way to memorize this. I have no clue how to configure my Ubuntu 16.04 (unity) desktop like this. 回答1: I have a solution that utilizes the pycharm's switcher. Note that in my current window setup, I have the terminal as the 5th window on screen, that maybe different on your case. Also this is relevant to Pycharm 2016.3 Go

TextMate: Comment-line shortcut does not work anymore (Cmd-/ or Cmd-Shift-7 on my swiss layout)

半腔热情 提交于 2019-12-02 05:35:19
I experience a quite strange behavior in TextMate since some time. I had troubles to use the keyboard shortcut for commenting a line (which is Cmd-/ or on my swiss layout it is CMD + SHIFT + 7 where SHIFT + 7 results in a / ) a few times already since I switched to Lion 2 months ago (before I never had any problems). I then used to restart TextMate and it worked again. But now, restart doesn't solve the problem. So I went into the Bundle Editor and tried to reset the shortcut, and there I can set it to anything I like, but not to Cmd-/ ! Nothing happens when I want to record the shortcut and

Is there a single keyboard shortcut to switch between the two most recently visited tabs in Xcode?

淺唱寂寞╮ 提交于 2019-12-02 05:26:47
When I'm coding I often like to jump back and forth between the two most recently visited open tabs in an IDE. Is there any single keyboard shortcut in Xcode for that? In e.g. Android Studio for macOS you can use Ctrl + Tab to achieve this like in many other IDEs (and analogously, switching between the two most recently visited applications in macOS is achieved by using Alt + Tab ). But if I press Ctrl + Tab once in Xcode and then do it again later, I don't jump back and forth between the two most recently opened tabs. Instead I continue through all the opened tabs in Xcode in a circle. I know

how to create non window bound keyboard shortcuts

我与影子孤独终老i 提交于 2019-12-02 04:56:33
I'm creating a C# application, could be WinForm, but preferably console application, which needs to capture keyboard shortcuts even when the application is not in the foreground. How would one do this, I know this is possible as i.e. Songbird can do this. This keyboard shortcuts would be of the form ctrl + -> I so far don't have any code as I don't even have the slightest idea on how to register keyboard shortcuts globally. You should use RegisterHotkey and not a keyboard hook. Using a global keyboard hook when you just want a global hotkey is an abuse of the api. It also has negative

How to prevent activating Ctrl+Alt+key bindings when pressing R.Alt+key?

二次信任 提交于 2019-12-02 03:44:36
问题 I have one very annoying issue with Eclipse under Windows. The key bindings for Ctrl + Alt + key are activated when I press Right Alt + key . This made me viewing the list of key bindings and remove all bindings for Ctrl + Alt + key , which I would find usable, when they wouldn't block inputing characters. I'm using keyboard mappings, where right conrol is a switch key for national characters. Right Alt + e = ę, Right Alt + O = ó etc. Eclipse seems not to be compatibile with such keyboard

IntelliJ: (Keyboard shortcut to) jump to next / previous suggestion

醉酒当歌 提交于 2019-12-02 03:20:51
问题 I know how to jump to the next and previous error ( F2 , see SO Link, jetbrains.com), but is there a way to easily jump between suggestions ? If possible, I would really love to have a keyboard shortcut for this, as I am currently learning Kotlin and IntelliJ often has nice suggestions on how to improve the code. If there is no keyboard shortcut to jump between suggestions, is there at least any other way? With suggestion I mean things like the following (Ignore the "nonsense code")): 回答1: F2

How to send a keyboard shortcut for a menu item with QTest?

心已入冬 提交于 2019-12-02 03:20:20
In a unit test, I'm trying to send the keyboard shortcut Command+N (on Mac OS), which corresponds to a menu item in my app. I'm using the PySide.QtTest module. In the code below, I'm using QTest.keyClicks , which doesn't produce what I'm expecting. The action corresponding to the shortcut is not called. class AppTestCase(TestCase): def setUp(self): qApp = QApplication.instance() if qApp is None: self.app = QApplication([]) else: self.app = qApp class IdfEditorTestCase(th.AppTestCase): def setUp(self): super(IdfEditorTestCase, self).setUp() self.window = IdfEditorWindow() def test_input_object