Multiple Windows in PhpStorm - phpstorm

Is it possible to have more than one window (for the same project) in PhpStorm ? If yes, how ?

PhpStorm supports only one frame per project.
Note that you can drag editor tab outside of the main window to create another window for the editor. Tool window panels can be also detached and moved to to the second display if you so desire.

You can choose Split Horizontally or Split Vertically from Windows menu!
As they are so useful, you can put two shortcuts to use them easier. I put option + 1 for splitting vertically and option + shift + 1 for splitting horizontally.
Update
In 2017 versions, The Split Horizontally and Split Vertically options are located into Windows > Editor Tabs

I was going to add this as a comment, on Nima Ghaedsharafi's post. The path to '''Split Horizontally''' and '''Split Vertically''' looks to be '''Window > Editor Tabs > Split ...''' in Version. 2017.1.4

Note for those trying to add a key shortcut for the Split Horizontally or Split Vertically buttons:
As of 2017.3.4, you can add the shortcut by going to Settings -> Keymap -> Main Menu -> Window -> Editor Tabs -> Split Vertically/Horizontally.
This still applies as of version 2019.2

You can split the editor window but I'm not sure if that's what you were asking.

Related

Change the default split of vscode

When I run jupyter interactive windows, vscode code split the screen and put that tab on right side:
How can I make that kind of tab open on the left side?
Try the "workbench.editor.openPositioning" setting:
{
"workbench.editor.openPositioning": "left"
}
Or via the settings menu Editor Management → Open Positioning:
It would be the "workbench.editor.openSideBySideDirection" setting, but the only accepted values are right and down. You could perhaps make a feature request or look for an extension that might have the behaviour you need.
The Open Positioning setting is where new tabs open relative to your current tab. Whereas you are asking about editor groups.

Xceed AvalonDock 2: dock/arrange/split my LayoutDocuments horizontally AND vertically

I have been using AvalonDock 1 for an old project, that needs a refresh/rewrite, so I started looking at AvalonDock 2.
One feature I am missing or not sure how to achive is the ability to freely dock/arrange/split my LayoutDocuments horizontally AND vertically.
My app has no docked parts, just the main area containing documents.
When I start off with several documents tabbed and start to drag one, then I can choose to either split horizontally or vertically.
However, when dragging another document, I can only choose to split the same way as before.
See how the second step has fewer dock/split options below:
I would like to be able to dynamically dock the window either below the left, the right or both windows.
How can this be achived? It was working with version 1.
You can do this by setting AllowMixedOrientation to True in the XAML of your DockingManager.
<xcad:DockingManager AllowMixedOrientation="True" ...>
</xcad:DockingManager>

size of multiple tabs in Notepad++

this is my first question here. I am using Notepad++ and I love it. The only thing I find uncomfortable is that when multiple tabs are open, the width of the tab name is too big, and that is because Notepad in the tab name displays the full name of the file.
I wonder if it is possible that the with of the tab was automatically reduced (as it happens in Google Chrome, for example), so that the more tabs you have, the smaller the width of the tab, that is, the more abbreviated the name is.
Thank you!
I'm using Notepad++ for a long time and I can say that there is no way to do what you want.
But, you can open multiple notapadd++ windows with multiple tabs.
e.g. 10 tabs at the 1st window, and 10 tabs at the 2nd window.
To open new Notepad++ window just drag&drop some tab from main window outside it. Same way you can move tabs between two windows.
To my knowledge there is no way to have tabs resize like that. You can try settings>preferences>general>tab bar>reduce or even multi-line, but I don't believe they can dynamically resize.

Is there any shortcut to select entire code block in Atom similar to Option + Up Arrow in PhpStorm

Is there any shortcut to select entire code block in Atom similar to Option + Up Arrow in PhpStorm?
It helps you select the code block and if you press Option + Up Arrow again, it expands the selection to its parent block.
Is there any shortcut or plugin to have that feature? It makes it faster to work with heavy code.
Yes! You want the expand-region plugin, it's great! Add these to your keymap.cson to expand the region with option-up (alt-up on windows) :
'atom-text-editor':
'alt-up': 'expand-region:expand'
'alt-down': 'expand-region:shrink'
Ctrl+Alt+M (Cmd+Ctrl+M on Mac) selects entire code inside the current brackets. It doesn't expand to the parent block though.
If you need that feature, you might want to look for some package. There is select-scope package that claims to add that functionality. I haven't tested if it works. It also doesn't seem to show up on the package list in every atom version.
If you decide to try that package out, you may need to override it's key-binding as it uses Ctrl+S.
This is now built into Atom.
https://blog.atom.io/2018/10/23/atom-1-32.html
Select Larger/Smaller Syntax Node

Auto-convert tab to 4 spaces in TextWrangler?

Is there a preference in Textwrangler to redefine a tab as 4 spaces? In Vim this is set expandtab in the vimrc, but I don't know how to set it in TW besides clicking "Detab" when I'm done editing the document.
Thanks,
Kevin
Go to "Preferences" -> "Editor Defaults" -> "Auto-expand tabs," and then set tabs to 4 spaces. Then restart TextWrangler for changes to take place.
For docs that already exist you have to hit the "Text Options" button in the top of the editor window of the open document. In older versions, it's the button that looks like a "T" with a light switch next to it; with newer versions, it's a gear "⚙" icon. In that drop down there is the "auto-expand tabs" as well.
in version 4.5.5, there is 'Text -> Detab...', which pops up a requester for how many space per tab, preset for 4.
Go to Edit -> Text Options and tick Auto-expand tabs. This will make all the new tabs to change to spaces.
To change all current tabs to spaces as well, go to Text -> Detab and hit Detab.
Hope that helps!
For Mac, another easy way to check and enable "Auto-expand tabs" is to hit the gear button on top left.
You can also use "Normalize Options..." to set the text options of an already-open document to whatever you have set in your Preferences. This is useful for dealing with pre-existing code.
There are two places you need to set the settings for this to work. One is for previously opened documents, and the other for all documents to be opened or created in the future.
The Settings
set "Auto-expand tabs" to checked
set "Tab width" to 4
Previously Opened Documents
Click the "Text Options" button. It is in the top left of the editor window directly above the document view of the open document. In newer versions it's a gear "⚙" icon. And in older versions it is a "T" and light switch.
New Documents
go to preferences menu: BBEdit -> Preferences
choose "Editor Defaults" from the side-bar in Preferences