keyboard-shortcuts

Python - A keyboard command to stop infinite loop? [duplicate]

流过昼夜 提交于 2019-12-04 15:44:51
问题 This question already has answers here : Closed 8 years ago . Possible Duplicate: Why can't I handle a KeyboardInterrupt in python? I was playing around with some Python code and created an infinite loop: y = 0 x = -4 itersLeft = x while(itersLeft<0): y = y + x itersLeft = itersLeft - 1 print "y = ",y, "itersLeft = ", itersLeft print y Is there a keyboard shortcut that would allow me to stop the looping - allowing me to fix the loop and then restart it? I've tried Ctrl + C and didn't have any

Attach a keyboard shortcut to 'Collapse All' items in solution explorer with Visual Studio 2012

只愿长相守 提交于 2019-12-04 15:35:34
问题 Like I said in the title of this question, is it possible to attach a keyboard shortcut to collapse all items in the solution explorer with Visual Studio 2012? In previous version; 2010, I was able to create a macro to enable this feature but in Visual Studio 2012, there is no more support for macros. I'm able to right click onto item in the solution explorer and choose 'Collapse All' but I prefer to just typed 'Ctrl+Shift+C' to do the same job. 回答1: FWIW, this is the best I've been able to

Basic code completion in IntelliJ on Mac

泪湿孤枕 提交于 2019-12-04 15:33:52
问题 There is very important shortcut for Basic Code Completion in IntelliJ IDE which assumed to be invoked as ctrl+space shortcut on Mac. The problem is this shortcut is system one and used to invoke "Spotlight" in Lion Mac OS. How you guys invoke it then? 回答1: You either disable/change Spotlight shortcut in the system settings or you change the Basic completion shortcut in IDEA Preferences | Keymap . 回答2: I think that the question is motley asking to what key combination do you change it, and

Is it possible to use “CamelHumps” option in Intellij/AS but having it select the whole name of field/method etc at double-click?

为君一笑 提交于 2019-12-04 15:08:06
问题 Not just the randomly clicked "hump", but the entire name 回答1: It's literally the very first option in Settings | Editor | General :) [ ] Honor "CamelHumps" words settings when selecting on double click 来源: https://stackoverflow.com/questions/28851055/is-it-possible-to-use-camelhumps-option-in-intellij-as-but-having-it-select-th

Vim delete visual selection and switch to insert mode

你。 提交于 2019-12-04 14:40:48
问题 I often find myself doing a visual selection, then hitting d or x to delete and switching to Insert mode with i . Is there a single keystroke that will delete the current visual selection and put me in Insert mode? 回答1: Use c or s to change the text and remain in insert mode 回答2: I think you just want to press s 回答3: The vim help just answers your question exactly: {Visual}["x]c or *v_c* *v_s* {Visual}["x]s Delete the highlighted text [into register x] and start insert (for {Visual} see

Visual Studio key bindings configuration file

时间秒杀一切 提交于 2019-12-04 13:07:12
Is there any human-editable configuration file that Visual Studio uses for its key bindings? The Options->Environment->Keyboard dialog is so completely broken (or at least much too tedious to use) and has been since Visual C++ 5 that I really just want to go to the configuration file the Visual Studio is saving the keybindings to and edit that directly. Ideas? Not the most ideal format, but there is the currentsettings.vssettings file located in your profile. There is a section that looks something like this <UserShortcuts> <RemoveShortcut Command="Edit.LineOpenAbove" Scope="Text Editor">Ctrl

Keyboard shortcut for show/hide the lower pane (Error List, Output, Watch) in Visual Studio

孤人 提交于 2019-12-04 13:04:23
Is there any keyboard shortcut or alternative way to show/hide the lower pane (Error List, Output, Watch etc. tabs) in Visual Studio. I am looking for something similar to Ctrl + R in Microsoft SQL Management Studio which toggles the Results pane. I understand I can pin/unpin, resize or move around the lower pane but it is not very convenient. I like the fact that when I am typing code, Visual Studio on-the-fly shows the any coding errors, but for that I have to keep the Errors pane pinned, but that reduces my coding window, specially when working on single-monitor systems or on laptops. If I

Single ESC closes ALL modal dialogs in jQuery UI. Workarounds?

夙愿已清 提交于 2019-12-04 11:05:48
Actually, there was (is still) a bug in jQuery: http://bugs.jqueryui.com/ticket/4511 . The reason for this behavior (from the bug description comments): "The dialog itself binds keydown event to itself for closing the dialog on ESC ; in addition, the dialog overlay binds a keydown event to the document, without filtering to close only the active dialog." I cannot come up with an idea of an acceptable workaround. Is there anyone who has had to deal with it yet? Jazzer Very simple - upon creating a modal dialog, run this: $([document, window]).unbind('.dialog-overlay'); If you create more then

Is there a keyboard shortcut in Pycharm for renaming a specific variable?

Deadly 提交于 2019-12-04 11:05:35
问题 I'm using Pycharm for Python coding, and I want to change the name of a specific variable all over the code. is there any keyboard shortcut for this operation? In Matlab I can use ctrl + shift . For example: old_name=5 x=old_name*123 will become: new_name=5 x=new_name*123 without the need to change both of the old_name references. Thanks! 回答1: Highlight your old_name and hit Shift + F6 回答2: I don't know about a shortcut for this special purpose, but I simply use Ctrl + R to replace the old

How to make a Custom Keyboard layout?

一个人想着一个人 提交于 2019-12-04 10:48:55
What's the best way to make a keyboard layout for Windows? Specifically a layout that will appear in the 'Text Services and Input Languages' list and without buying expensive software. I know about the Microsoft Keyboard Layout Creator but find it completely limited as you can't do simple things like remap the CapsLock key or the number keys. For remapping CapsLock or the number keys, use remapkey.exe found in the Windows 2003 Resource Kit Tools . Keyboard layouts that show up in “Text Services and Input Languages” can’t remap CapsLock or do anything not supported by Microsoft Keyboard Layout