keyboard-shortcuts

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

爱⌒轻易说出口 提交于 2019-12-03 06:24:38
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! Highlight your old_name and hit Shift + F6 I don't know about a shortcut for this special purpose, but I simply use Ctrl + R to replace the old variable names with new ones. You can also set settings such as Match case , Regex or In selection . Note that this

How Can I Override Visual Studio's Menu Accelerator Shortcuts?

纵然是瞬间 提交于 2019-12-03 06:13:58
问题 I'm a Mac-based .Net developer so over the years I've got into the habit of remapping certain common functions to a more 'Macish' set of keyboard shortcuts: CUT: Ctrl + X => Alt + X COPY: Ctrl + C => Alt + C PASTE: Ctrl + V => Alt + V SELECT ALL: Ctrol + A => Alt + A SAVE: Ctrl + S => Alt + S and so on. with this fancy schmancy VS 2010 Premium edition we've just got we've got extra menus e.g. Test Data whose menu accessor (accelerator?)shortcuts are Alt + S and Alt + A which take precedence

Is there a way to delete a line in Visual Studio without cutting it?

和自甴很熟 提交于 2019-12-03 06:09:56
问题 I want to delete a line just like hitting Ctrl + X without anything selected, but without saving the line to the copy stack. Is this possible? I'm using Visual Studio 2010. 回答1: Edit.LineDelete is the name of the command. By default it's bound to Ctrl + Shift + L , but you can give it whatever you like in Tools | Options | Keyboard. Edit : Corrected default shortcut info. 回答2: Ctrl + Shift + L will delete the line and not copy to the clipboard. 回答3: I mapped Ctrl + L (Global) to Edit

Shortcut key for 'View in Object Browser'

蹲街弑〆低调 提交于 2019-12-03 06:09:30
Does anyone know if there is a shortcut key for viewing the selected object (in the text editor) in the object browser? I am sure there was one, but I cannot find it, or anything that seems to work in the key bindings dialog. eg: string test = string.empty; if (string.isnullorempty(test)) { ^ caret here ... } pressing the key would open the object browser to System.String Wilka F12 will go to the source (if you have it), or the object browser if it's in a referenced assembly. atreeon This navigates to the correct class inside the object browser. Shift + Alt + F12 , then right click in the

Detecting continuous key presses with UIKeyCommand

人走茶凉 提交于 2019-12-03 05:58:38
问题 Is it possible to get continuous key presses? I'm using keyCommands : to intercept the arrows keys being pressed on an external keyboard, but I only get 1 call per press. I would love to get either multiple calls every X milliseconds as long as the key is held down, or calls when the key is pressed and when it’s released. Here's my code: - (NSArray *)keyCommands { UIKeyCommand *upArrow = [UIKeyCommand keyCommandWithInput:UIKeyInputUpArrow modifierFlags:0 action:@selector(upArrow:)];

Eclipse jump to Editor tab shortcut

不想你离开。 提交于 2019-12-03 05:52:56
I am wondering if there is any way to have a keyboard shortcut to a tab. Like for example Firefox having Alt + 1 / Alt + 2 / Alt + 3 to go to tab 1 / 2/ 3 etc... Cheers, You can use F12 to go to the current editor and Ctrl + E to get a list of open editors. Then you can type a couple of characters to narrow down the list. The currently visible tabs are at the end of the list (use End or Up to jump there) Ctrl + PageUp and Ctrl + PageDown select the previous and the next tab. Ctrl + Q goes to the last edit position. Alt + Left and Alt + Right go back- and forward through your editing history

Hotkeys for Previous and Next call stack frames in Visual Studio

a 夏天 提交于 2019-12-03 05:50:57
问题 Visual Studio gives many navigation hotkeys: F8 for next item in current panel (search results, errors ...), Control + K , N for bookmarks, Alt + - for going back and more. There is one hotkey that I can't find, and I can't even find the menu-command for it, so I can't create the hotkey myself. I don't know if such exist: Previous and Next call-stack frame. I try not using the mouse when programming, but when I need to go back the stack, I must use it to double click the previous frame.

Shortcut to collapse all documentation headers/comments in Visual Studio

风流意气都作罢 提交于 2019-12-03 05:38:21
Is there a way to collapse all documentation headers (/// comments) in the current file in visual studio (2008+)? See my macro for collapsing XML comments which does exactly what you need. Anton Gogolev You can try Ctrl + M , Ctrl + O , but that will collapse function bodies as well. Ruben Bartelink What Anton said. If what you want is not on Edit|Outlining, you'd need to write a macro or a DxCore plugin to walk it and Ctrl + M , M each relevant block. 来源: https://stackoverflow.com/questions/2116685/shortcut-to-collapse-all-documentation-headers-comments-in-visual-studio

Programmer's VIM setup for Finnish/Swedish or other non-US keyboard layout

两盒软妹~` 提交于 2019-12-03 05:36:18
问题 I've been recently learning some VIM hackery and I have learned a lot of useful commands and gotten pretty efficient at editing text with VIM. I'm using the Finnish qwerty keyboard layout (see image below) which is pretty horrible for programming. All your usual coding special characters ()[]{}/\ happen by pressing either shift or alt gr and a number key, but I'm already pretty used to that. I do not want to change my keyboard layout since I do quite a lot of writing and IRC chatting in my

How do I make a keyboard shortcut for Terminal in CentOS 7

妖精的绣舞 提交于 2019-12-03 05:32:12
问题 Just installed CentOS 7 on my laptop. This new version of CentOS is pretty different from older ones, and I cannot make a keyboard shortcut for Terminal in older ways. Dose anybody know how ? 回答1: Go to Settings >>> keyboard >>> Shortcuts tab >>> Custom Shortcuts >>> click "+" Name: Terminal Shortcut Command: gnome-terminal Now a new shortcut added with status "disabled". Click on "disabled" word and assign your shortcut. For me, I prefer Ctrl + Alt + t to run Terminal 回答2: On Gnome 3 GUI you