keyboard-shortcuts

Shortcut for moving code block up and down in Android Studio

Deadly 提交于 2019-12-05 07:20:48
is there any shortcut for move a selected code block up and down in android studio? In Visual Studio 2010+ I just select my block, hold ALT-Key and press arrow up / arrow down. Then, the selected block float up/down. Is there a similar action in Android Studio? Try Ctrl-Shift-Up or down arrow. I know intellij and as this is based on intellij that might work. You can use Ctrl + Shift + Up/Down Arrows to move the selected block up or down. Here is a list of shortcut keys for Windows&Linux . On Mac: Command + Shift + Up/down arrows 来源: https://stackoverflow.com/questions/36712796/shortcut-for

Jump through java methods in emacs

我与影子孤独终老i 提交于 2019-12-05 07:13:32
I want to jump through my java files by method, e.g. when I've got my anywhere, do a single keyboard shortcut to jump to the next end of a method or beginning of a method. Emacs' "moving by defuns" with C-M-a and C-M-e is super-useful for C and does exactly what I want. But apparently in Java a defun is a whole class. Moving by defuns: http://www.gnu.org/software/emacs/manual/html_node/emacs/Moving-by-Defuns.html I've found that I can coerce C-M-f and C-M-b to sort of do what I want. They move forward and backward over any parentheses-balanced expression. The problem is that they only have the

Backspace key is reverted in Eclipse Mars

心不动则不痛 提交于 2019-12-05 06:40:19
My backspace key in Eclipse Mars (4.5.0) works like the delete key: it deletes the right character instead of the left one. That's really confusing Maybe I accidentally used a shortcut key? I tried to restart Eclipse but it didn't work. I also tried to switch the key binding preferences to "Emacs" scheme before reverting to "Default" but that didn't work either. Any help appreciated, thank you! Edit: damn, I just found out that ctrl+x doesn't work any more either! Got solved: Go to "Window -> Preferences". Then inside the tree navigate to "General -> Keys". In the right side of the window,

SQL Server Management Studio: Open table for Editing through keyboard shortcut

醉酒当歌 提交于 2019-12-05 05:40:21
While using SQL Server Management Studio (2008), is it possible to open a table in Edit mode through keyboard shortcut or even some special keyword I type while in "New Query" window? No this can't be done. You can open a table by right clicking on the table you want to edit and selecting "edit all rows" - before doing this make sure your options are set tools/options/ Sql server object explorer/commands. Dont know if that helps but maybe. 来源: https://stackoverflow.com/questions/2764587/sql-server-management-studio-open-table-for-editing-through-keyboard-shortcut

Is there a functionality like Sublime's “HTML: Encode Special Characters” in Intellij IDEA

折月煮酒 提交于 2019-12-05 05:15:19
I'm looking something like the functionality given in Sublime Text by the shortcut (windows) Ctrl + Shift + P named "HTML: Encode Special Characters" but in IntelliJ IDEA . This functionality is able to transform this (as a example): I'm a special character phrase "áéíóú ñ" Into this: I'm a special character phrase "áéíóú ñ" Only by surrounding the specified text and pressing the shortcut key combination given above (again, in windows Ctrl + Shift + P ). Any thoughts? UPDATE (07-04-2016) By now, Intellij Idea support this feature natively (version 2016). You need to select the text you want to

Traversing directories with vim file name completion in insert mode (Ctrl-X Ctrl-F)

▼魔方 西西 提交于 2019-12-05 04:56:53
I’m trying to use vim’s compl-filename feature ( Ctrl-X Ctrl-F ) to complete paths in INSERT mode, but I can’t work out how to traverse into directories without (temporarily) ending the completion mode: Let’s say I want to complete the path /etc/sysconfig/network-scripts/ifup . I would like to be able to do something like: / e Ctrl-X Ctrl-F /e tc/ /etc/ s y s Ctrl-F /etc/sys config/ /etc/sysconfig/ n e t Ctrl-F /etc/sysconfig/net console Ctrl-N /etc/sysconfig/net work Ctrl-N /etc/sysconfig/net work-scripts/ /etc/sysconfig/network-scripts/ i f u p Ctrl-Y /etc/sysconfig/network-scripts/ifup The

How can I expand multi-line selection to full lines in PHPStorm?

↘锁芯ラ 提交于 2019-12-05 04:39:27
In Sublime Text I can arbitrarily select a set of lines and then use ⌘+L to expand the selection to the full lines. Is there a similar command in PHPStorm / WebStorm? (I'd like to map that command to a keyboard shortcut.) I know PHPStorm has the option "Select Line at Caret", but that selects only one line. I was also missing this functionality in PHPStorm which I used often in Sublime. Still it aint possible to set a caret by keyboard on all selected lines. This is as close as I could get it and it does the trick for me. Go to settings > Keymap. Search for Clone Caret Above/Below . I'm

Google Chrome Developer Tools keyboard shortcut customization on Mac

倖福魔咒の 提交于 2019-12-05 04:11:43
I use Firefox Firebug to debug but would switch to Google chrome if I could customize the keyboard shortcuts. I need to activate and hide the 'developer tools > inspect Element', 1000 times a day. Trying to type CMD + SHIFT + C with one hand, it's a nightmare. I navigate with the mouse The extension 'Shortcut Manager' has limited built in options. The ability to add Javascripts doesn't help me, where would you start on a task like this? Because 'inspect Element' has no presence in the Mac menu, I can't even target it that way. Any ideas? There's a simple way to do this without any add-ons. To

Ctrl-Backspace Visual Studio 2010

久未见 提交于 2019-12-05 03:32:38
I recently upgraded to Visual Studio 2010 and found out that when I press Ctrl + Backspace on an empty line it will delete the line, which is what it did in 2008, but then it will also delete the last character on the line above. I have tried to see if there is any settings anywhere but i cant seem to find any. Does anyone know if you can change this or did they make it default in 2010 Im using C#, if that makes a difference. Noah Richards Update: Visual Studio 2010 SP1 contains the real fix that I mentioned below (see the "Visual Studio Editor" section of this document ). Once you've updated,

Copy and pasting multiple items to the clipboard in IntelliJ IDEA

橙三吉。 提交于 2019-12-05 02:30:24
In IntelliJ IDEA, is it possible to have multiple items in your clipboard and choose which item to paste? What are the keyboard shortcuts? Alexis Yes, it is possible. Whilst Ctrl + V is normally used to paste, use Ctrl + Shift + V (IntelliJ Default Key map) which will bring a pop-up of the items in the clipboard to paste. The default size of the clipboard is 5; it will show the last five things have have been copied. The option to change this is called "Maximum number of contents to keep in clipboard". You can change it quickly by using Ctrl + Shift + A and typing the name of the setting. Ctrl