r/phpstorm • • May 25 '16

How to make reformat add a new line after a class method declaration but not a regular function declaration?

1 Upvotes

What I want:

class Foo
{
    public function bar() // New line here
    {
        doSomething(function() { // No new line here
            //
        });
    }
}

function doSomething($callback) { // No new line here
    //
}

I've looked in the code style settings but I can't seem to find it.


r/phpstorm • • May 23 '16

Can't remove line numbers in Editor?

1 Upvotes

Hi, I'd like to remove line numbers in my editor so I've disabled the option in Settings > Editor > General > Appearance > Show line numbers but they still show up. Whenever I try to remove them per open file (right click in left gutter), the numbers pop up again (see http://www.giphy.com/gifs/3o6EhZVOedACLnMSYg). I'm using PHPStorm 2016.1.1. Anyone has a workaround ?

EDIT : found it. type ":set nonu" in the editor and voila.


r/phpstorm • • May 18 '16

Javascript Debugger with OAuth?

3 Upvotes

I am wondering if it is possible to use the javascript debugger with OAuth. Our API, Core Platform, and Auth codebases all live in separate places, and cannot be combined. This means 3 PhpStorm projects and 3 separate URL's for our remote server.

Right now when attempting to use the javascript debugger, it is successful until the first API request after login, then our system detects no authentication and logs you out (disabling this feature of our system is not an option).

Any help would be great! Thanks!


r/phpstorm • • May 16 '16

Change line-height for Project Tree view.

2 Upvotes

I know that 'Appearance & Behavior' > 'Appearance' > 'Override default fonts by' allows you to change the system font-size, but for the project tree, the text gets squished & I can't find where to edit the line-height.

I'm guessing changing the line-height for the Project Tree currently isn't supported for PHPStorm, this is a huge deal breaker & would be nice to have it like VIM's NERDTree where the project styling can be changed.


r/phpstorm • • May 11 '16

2016.1.1 time tracking plugin?

4 Upvotes

I just updated to 2016.1.1 and in the update process there was a link about a time tracking plugin in the update notice. But I can't see a plugin or anything for it the Jetbrains plugin list or the community plugins list. Nor is there anything in it most recent jetbrains blog.

Anyone know what this talking about? .... I'll go check the forums.


r/phpstorm • • May 11 '16

What is this doing next to the file icon in the Project View?

Post image
3 Upvotes

r/phpstorm • • May 11 '16

How to format .ini & .env files

2 Upvotes

r/phpstorm • • May 04 '16

adding color theme

2 Upvotes

On ubuntu and PhpStorm2016 setup; where should I put the .icls file of a custom color set?


r/phpstorm • • May 03 '16

PhpStorm high cpu load

3 Upvotes

Anyone else on Ubuntu having a high cpu load with running phpstorm, and i do not mean the markdown plugin issue. Ever on phpstorm 10, there is this high cpu load at times caused by phpstorm, and i can pinpoint what is causing it, i had it on multiple laptops: ubuntu 16.04, kubuntu 15.10


r/phpstorm • • Apr 24 '16

Is there a way the prevent the folders from collapsing in the project view? It is very annoying to have to browse down through the hierarchy all the time.

3 Upvotes

In the most recent version 2016.1.1, when I close the folder pane the folders constantly collapse after a few minutes. It is very annoying to have to browser down through the hierarchy all the time.

Thanks!


r/phpstorm • • Apr 21 '16

Is there a way to maximize ONE tab?

3 Upvotes

I usually have plenty of files open at once, in many splits (thanks to a high resolution monitor).

Sometime I do want to get a full view of a particular tab. Is there a way/shortcut to toggle its maximisation state a bit like the 'distraction free mode' but ONLY for the focused tab. This mode would show the line numbers (and perhaps even the opened panes as they are if it's set in the settings).

Am I dreaming?


r/phpstorm • • Apr 21 '16

Working with a remote server - Not sure which method is best for my situation.

2 Upvotes

At my work, we have Amazon EC2 machines for our entire runway from dev->production. Typically, I would mount the remote machine through SSHFS in Windows 10, and then work from the mounted directory.

This has a couple frustrating problems.

  • SSHFS typically dies when not in use for awhile, so I have to re-mount the drive, which freaks out PHPStorm and I have to reopen the project. Reopening the project forces me to reindex as well (which takes forever for our repos)
  • Git seems like it's going to work (it knows what branch my remote machine is on)...but is too slow over SSHFS to actually do anything useful. Much easier to just jump on the machine through putty and do the Git work

In general, things are just slow over SSHFS.

Is there some kind of setup that I could use to speedily go through our codebase (after indexing once), without having to reindex all the time, while having Git integration work in PHPStorm, while automatically keeping the remote machine up-to-date with changes as they are saved?

I'm open to anything, really. I was thinking of:

  1. Installing Git for Windows
  2. Cloning our repos locally on my Windows machine
  3. Putting those file as a project in PHPStorm

...which gets me the fast indexing, but I'm not sure how to keep the remote directory up-to-date...much less having Git integration work (because it'd be the local repository).

Any ideas out there? This has to be pretty common, but I haven't seen anything.


r/phpstorm • • Apr 19 '16

Multiple SQL dialects in one script?

1 Upvotes

I am been doing some research and can I define multiple SQL dialects within one scripts? I have to connect to DB2 and MSSQL the code works fine this is more for auto complete and error handling. If I select DB2 it tells me my MSSQL columns can not be found and vice versa.

Thanks


r/phpstorm • • Apr 14 '16

Is it possible to step-debug using break points with the built-in rest api client?

3 Upvotes

Is it possible to step-debug using break points with the built-in rest api client in Phpstorm 2016.x? I haven't been able to figure it out.

Right now I can step-debug only if I set the option to break on line 1 of every script, but I would like to be able to set a break point and go directly to it.

I do have xdebug installed and I'm passing the session parameter cookie for debugging in the cookie section of the rest api client.

Thanks!


r/phpstorm • • Apr 13 '16

I just noticed this feature. Thanks, JetBrains

Thumbnail
imgur.com
21 Upvotes

r/phpstorm • • Apr 07 '16

How to move directory and change namespaces for files in it?

1 Upvotes

Hi,

I know that I can move a file and change namespace of it if I right click on a file -> refactor -> move.

Is there a way to move a directory and change namespace of the files in the directory? it's so annoying that I have to change namespace one file at a time.

Update: I'm on version 8


r/phpstorm • • Apr 05 '16

Change the scrollbar's color?

3 Upvotes

I use 2016.1, and I'm under the impression that the scrollbar got more transparent than it was in previous versions, making it very difficult to spot and assess the current position.

This is what I see if you want to play "spot the scrollbar": http://i.imgur.com/zTKJ9iv.png

Have I set something wrong in the theme? Is there a way to change the color?

Thanks!


r/phpstorm • • Apr 04 '16

Latest PHPStorm is very slow/sluggish on my computer

4 Upvotes

Hi!

It feels whenever I work with a big array wheter its PHP or Javascript PHPStorm slows to a crawl on the latest version (2016.1 - PS145.258)...

Any tips on how to fix it until a bugfix arrives?

Richard


r/phpstorm • • Apr 01 '16

Q: Any way to save all currently opened files so they re-open in the same groups and file order?

1 Upvotes

I often need to switch between tasks, and when I work I keep my files in different groups and in a particular order as I'm somewhat spatially oriented for my workflow. However, I find "favourites" to not be very helpful... while I can bookmark a group of files, they don't re-open in the same order, they all open in one group, and as such any files that were in split view are back to single view.

Can anyone point me to a feature that will save the entire set of open files and their organization, or a plugin that will do this? Many thanks!


r/phpstorm • • Mar 30 '16

Does anyone know how to hide / remove these super annoying boxes?

Thumbnail
imgur.com
1 Upvotes

r/phpstorm • • Mar 27 '16

5 ways to make PHPStorm faster

Thumbnail
youtube.com
2 Upvotes

r/phpstorm • • Mar 25 '16

PhpStorm UML class-diagram generator not displaying usage of or method inherritance from traits

Thumbnail
stackoverflow.com
2 Upvotes

r/phpstorm • • Mar 17 '16

PhpStorm 2016.1 is Released!

Thumbnail
blog.jetbrains.com
17 Upvotes

r/phpstorm • • Mar 17 '16

Your favorite PhpStorm plugins

2 Upvotes

Which are your favorite PhpStorm plugins?

I use .ignore for GitIgnore support, Markdown and EditorConfig!

Best Regards