keyboard-shortcuts

PhpStorm wrap/surround selection?

一世执手 提交于 2019-12-02 14:13:15
Often in coding and templating I need to wrap a certain part of text. Is there any shortcut to wrap the current selection, for example: Hello World "Hello World" Hello World {{ trans 'Hello World' }} Im using PhpStorm 7 for Mac and PC. I found something similiar, with: ctrl + alt + j you can wrap with a html-tag but nothing else. Also ctrl + alt + - comments the current selection according to the current file format(php, twig, html, ...) Steve.NayLinAung I know this is a little late answer, but I hope anyone who looks this question get helped. In PhpStorm, almost everything can be configured

Press alt + numeric in bash and you get (arg [numeric]) what is that?

点点圈 提交于 2019-12-02 14:05:48
Press alt + numeric in bash and you get (arg [numeric]) what is that? (This type of question is better suited for asking a human, instead of trying to "guess" for the correct terminology to search on the documentation via internet). The term you want to google for is: "readline arguments" This will lead to, for example, this chapter from the bash reference manual : You can pass numeric arguments to Readline commands. Sometimes the argument acts as a repeat count , other times it is the sign of the argument that is significant. If you pass a negative argument to a command which normally acts in

Shortcut key to select word in Eclipse

China☆狼群 提交于 2019-12-02 14:00:27
Is there any keyboard shortcut to select a word? Or may be it can be assigned some how? Instantsoup Shift + Alt + ↑ selects enclosing elements. Shift + Alt + ↓ reverses Shift + Alt + ↑ . Shift + Alt + ← selects enclosing elements moving up the file. Shift + Alt + → selects enclosing elements moving down the file. Joshua McKinnon The quickest way to find any keyboard shortcut in Eclipse is to use Help->Key Assist (or Ctrl + Shift + L ), which will pop up a nice tooltip with keyboard shortcuts and what they do. (If you press he Key Assist shortcut twice, you'll get the Keys Preferences page,

Is there a standard keyboard shortcut to build the current project in Visual Studio?

做~自己de王妃 提交于 2019-12-02 13:54:40
I know that Ctrl + Shift + B launches a solution build, but I would like a shortcut that just builds the current project. Is a custom shortcut my only option? Edit: Looks like a custom shortcut is my only option as Shift + F6 does not work for me. Assigning the shortcut to "Build.BuildOnlyProject" command doesn't seem to work in VS2008. Assign the shortcut to " Build.BuildSelection ". If you have a solution with several projects and files open from the various projects, whatever file you are currently editing will define the project that will be built when you use the assigned shortcut for

Navigating through code with keyboard shortcuts [closed]

一世执手 提交于 2019-12-02 13:54:22
I'm starting to feel the need to run fastly through code with keyboard shortcuts, to arrive faster where I want to make any changes (avoiding use of mouse or long times holding ↑ , ← , → and ↓ ). I'm already using some: Home - first position in current line End - last position in current line Ctrl + Home - first line of the entire code Ctrl + End - last line of the entire code Page Up - same vertical position, one screen above Page Down - same vertical position, one screen below Ctrl + Page Up - first line in current screen Ctrl + Page Down - last line in current screen Ctrl + ← / → - skipping

Visual Studio Expand/Collapse keyboard shortcuts [duplicate]

纵然是瞬间 提交于 2019-12-02 13:52:21
This question already has an answer here: Command to collapse all sections of code? 20 answers In Visual Studio, if I have a code file open, I can press CTRL + M or CTRL + M + O to collapse all code blocks, regions, namespaces, etc. How to I do the opposite and expand everything? I have Googled this, but cannot seem to find a shortcut that works! series0ne Collapse to definitions CTRL + M , O Expand all outlining CTRL + M , X Expand or collapse everything CTRL + M , L This also works with other languages like TypeScript and JavaScript As you can see, there are several ways to achieve this. I

Vanilla JS: Totally disabling a “save” functionality in webpages

两盒软妹~` 提交于 2019-12-02 13:52:12
问题 Assume I'm a junior Wikipedia user that just want to experiment with changing some wikipedian content with the Wiki text editor in an edit-page, but not saving my changes in any way (not even by mistake), thus seeking a way to prevent any saving functionality in an edit-page, via vanilla JavaScript. If I go for some edit-page in Hebrew Wikipedia I can save or publish a page by mouse-clinking the Save page button (illustration), which I can remove from DOM with: document.querySelector("#wpSave

How to use sidebar with the keyboard in Sublime Text 2 and 3?

↘锁芯ラ 提交于 2019-12-02 13:50:15
When using Sublime Text 2 we tend to open the side bar to navigate thru files/folders in our projects. For that we can use the hotkey ctrl+k ctrl+b (in windows). However, once we're in the side bar , we can't use it with keyboard (arrows for instance). We have to stick using it with our own mouse... Just a note : I installed SideBarEnhancements plugin, but I didn't find anything that could solve my problem. Any solution you might know? Riccardo Marotti You can type Ctrl + 0 ( Ctrl + Zero ) to focus on the side bar. Then you'll be able to move selection among files with arrow keys and to open

Is there a [Go to file…] in Xcode?

会有一股神秘感。 提交于 2019-12-02 13:49:58
In every modern day IDE and text editor, there is an action to open a file without putting your hand on the mouse. For example: Eclipse: Cmd | Ctrl + Shift + R -> Open Resource IntelliJ: Cmd | Ctrl + Shift + N -> Open File TextMate: Cmd + T -> Go to File In Xcode, I have found no such options. Please, please tell me I just overlooked it in my growing frustration. Is there a "Go to file" or "Open File" shortcut in Xcode? Since Xcode 4 (including 5, 6, 7, 8, 9, 10 and 11) it's ⌘ + ⇧ + O djones Command + Shift + O is now the shortcut to find a file quickly and open it in Xcode 4 Its not quite the

What is the shortcut in IntelliJ IDEA to find method / functions?

老子叫甜甜 提交于 2019-12-02 13:48:19
I know that Ctrl + N is to find classes and it is very useful. But what about methods? Press SHIFT TWO times and you can search anything, both class and method in the project. Daniel Deng ctrl + F12 ( cmd + F12 on macOS) will show all members of the current class in a popup windown and let you pick up one. It works exactly like the ctrl + o shortcut in eclipse, much faster than ctrl + alt + shift + n Brian Agnew Ctrl + Alt + Shift + N allows you to search for symbols, including methods. The primary advantage of this more complicated keybinding is that is searches in all files, not just the