Questions tagged [phpstorm]

PHPStorm is a commercial IDE for PHP, HTML and Javascript

Filter by
Sorted by
Tagged with
0 votes
2 answers
189 views

Indent of array in method in phpStorm

phpStorm is formatting arrays in method calls like this (auto code formatting): $address = new Address([ 'full_name' => $fullname, ]); I expect it ...
user avatar
  • 1,792
0 votes
0 answers
17 views

PhpStorm 2021: how to save remote branch target for push

PhpStorm 2016 saved remote branch target for push dialog window. But 2020 and 2021 not. How to save it?
user avatar
  • 101
0 votes
0 answers
22 views

PhpStorm: git update project on startup

I would like to update the project when the IDE opens. I think there is an option to allow this, but I couldn't find it.
user avatar
  • 123
0 votes
0 answers
43 views

Can I share local directory of host OS as volume with remote Dockerized container which sits on Ubuntu VM (managed by VMWorkstation PRO)?

I am totally blind so my development setup is quite different than for most sighted people. My goal is to be able to use PHPStorm and VSCode simultaniously and use power of Docker to run containers ...
user avatar
0 votes
0 answers
47 views

phpstorm, import VCS file(local history) from phpstorm2017.2 to phpstorm2019.2

I want import or restore localhistory(VCS) files from phpstorm 2017.2 to phpstorm 2019.2 I have "changes.storageData" file from old phpstorm, last time I changed all directory of this ...
user avatar
  • 1
0 votes
1 answer
1k views

Command 'phpcs' not found

I am trying to install PHPCS (PHPCompatibity) in my PHPStrom. For that I have installed PHPCS using composer with the following command: $ composer global require "squizlabs/php_codesniffer=*&...
user avatar
0 votes
1 answer
24 views

Got a few problems with phpstorm

I'm trying out the program the first time and I get errors and warnings that should not be there. because the page loads up just fine. I have screenshots. categories.php Undefined variable '$...
user avatar
0 votes
1 answer
24 views

PhpStorm - Change deployment server for a project

How can I change the deployment server for a certain project? I have two remote servers. I tried it by setting the default remote server to the other server but the old server is still getting used. I ...
user avatar
  • 6,472
0 votes
0 answers
363 views

Open PHP Storm on bash command-line without output

Since hours I'm trying to run my phpstorm from commandline, without having any output at all. Reason: Every day when I come to work, I have multiple tools to start... 2 different vagrant machines, ...
user avatar
  • 83
0 votes
2 answers
250 views

How to delete text not matching regex in phpStorm

Having a JSON logfile, I want to extract the product IDs to have a clean list: {"comment": "comment.", "product":"100"} {"comment": "comment.", "product":"555"} {"comment": "comment.", "product":"100"...
user avatar
  • 1,792
2 votes
0 answers
110 views

Can't use XDebug in PHPStorm via a local PuTTY SSH proxy + tunnel even though XDebug log says a connection was successful

Here's a confusing one. I need to use XDebug for a remotely-hosted PHP project. The remote server is firewalled and only accepts connections from a second remote server, so in order to connect to ...
user avatar
  • 642
1 vote
1 answer
84 views

IntelliJ | Make Git Branches Widget stick to corners

I am using PhpStorm and various other JetBrains IDEs. Currently my Git Branches widget floats when I click to bring it up or use the shortcut CTRL + SHIFT + ~. My current monitor setup makes this more ...
user avatar
  • 167
1 vote
1 answer
3k views

PhpStorm database connection error

I get such error when making connection to the database in PhpStorm. I couldn't find a solution. Server returns invalid timezone. Go to 'Advanced' tab and set 'serverTimezone' property manually.
user avatar
0 votes
1 answer
39 views

PHPStorm sintax highlight for .html.twig

I noticed that phpstorm doesn't consider myfile.html.twig file as a twig file type. If i use myfile.js.twig, it's considered a twig file. Do you know why ? Is there a solution ?
user avatar
  • 3
3 votes
1 answer
4k views

Where is located .ideavimrc file?

I try to find the .ideavimrc file to configure it. All the documentation I can find on Internet refers to ~/.ideavimrc I can't find it whether I assume it refers to home/ inside Windows Linux ...
user avatar
  • 143
0 votes
1 answer
510 views

Webstorm LiveEdit not updating js files

When I am attempting to change my node server code and view it to live edit, I use the following address: http://localhost:63342/untitled4/app.js but instead of the code running, I just get a text ...
user avatar
0 votes
1 answer
141 views

PHPStorm 2018.5.3 - deployment does not auto upload a file changed by a file watcher until the window is refocused

OK, so an odd problem here. So I have a filewatcher setup to copy a file from it's source directory to another directory in the repo. I have deployment and automatic upload configured. So I change ...
user avatar
  • 111
0 votes
0 answers
26 views

Text indentation with HTML Tag in Phpstrom

I want the same indentation for text as the tag has. Anyone can tell the exact settings for Phpstrom editor
user avatar
0 votes
1 answer
209 views

Remove auto generated comments in phpstorm

The comment in particular I'm having beef with is added when I tab complete the name of a method I'm overriding. Phpstorm helpfully adds // TODO: Change the autogenerated stub. I know. That's what I'm ...
user avatar
1 vote
0 answers
96 views

Docker container xdebug with phpstorm issues

I need to debug (with phpstorm + xdebug) some php code inside a docker machine running on a vmware virtual machine. The IDE is running on another vmware virtual machine. I have some problems with ...
user avatar
  • 11
0 votes
1 answer
200 views

Added an external folder to a project in PHPStorm on MacOS Mojave

I'm working in PHP Storm, on a project that's using a package I'm developing in tandem. I've had a couple of workflows for this, but I'd really like to add an external directory (the package source) ...
user avatar
  • 1
3 votes
0 answers
428 views

How to fix this PhpStorm, Docker and PhpUnit issue?

I have three docker containers: prefix-php-fpm prefix-mysql prefix-mysql-test I have configured Docker, remote PHP interpreter and PhpUnit in PhpStorm. But when i run tests which requires DB ...
user avatar
0 votes
1 answer
121 views

PHPStorm not receiving debug connection when accessing the web server from a remote host

For some reason PHPStorm does not receive the debug connection when accessing the web server from a remote host. PHPStorm behaves like it is not listening at all. If I access the web server from the ...
user avatar
  • 131
0 votes
2 answers
2k views

Less Compiler is not working in PHPStrom 2018.3

I am using PHPstrom 2018.3 (latest Version). I am getting this error while I am using less to compile through file watcher. Failed to run File Watcher ', Less'. The watcher has been disabled. Error: ...
user avatar
0 votes
1 answer
387 views

What should my file watcher settings be for phpstorm?

I am trying to set up file watcher in Phpstorm for watching a main.scss file and outputting to a style.css file. I am really confused. In order for me to get a macro preview in the macros screen I ...
user avatar
0 votes
1 answer
2k views

Virtual File System on Windows 10?

I am a PHP programmer and I am looking for a way to create a virtual folder/file Structure, which means: i can copy only required files from anywhere (which would actually be linked to the original ...
user avatar
  • 773
0 votes
0 answers
218 views

Phpstorm constantly freezes up and is left hanging/unresponsive

I’m running Ubuntu 18.04, when I open phpstorm it often takes a very long time to index my files, while it does this it effectively maxes out my CPU (i7). If I try and open another project it’ll quite ...
user avatar
0 votes
1 answer
1k views

PHP Storm Interpreter is not specified or invalid

I got this error as mentioned below. I don't understand how to set one as there's no interpreter to choose. I will appreciate any help, Eve
user avatar
  • 11
0 votes
1 answer
878 views

PHPStorm + docker + xdebug + db ssh tunnel

Locally I have following docker-compose configuration: nginx: build: context: ./nginx ports: - "80:80" volumes: - ./../logs:/home/web/logs/ - ./../:/home/web/my-website.com/ ...
user avatar
1 vote
0 answers
132 views

Super+O and Super+Shift+O don't work in Ubuntu 18.04 and PhpStorm

I am using PhpStorm on Ubuntu 18.04. I would like to use Super+O and Super+Shift+O shortcuts but I can't make PhpStorm register them, it behaves as though these keystrokes don't exist. Does Ubuntu ...
user avatar
  • 111
0 votes
0 answers
36 views

PhpStorm 2017 autopopup completion not working outside <> symbols

If I type < symbol and then continue typing, autopopup completion works just as intended: But outside of <> tags(either html or php - <a></a> or <?php ?>, for example) ...
user avatar
  • 211
1 vote
0 answers
156 views

Unable to make PHPStorm work with Node.js and Docker

Here is my setup: Here is some of the errors I am getting: So it seems I have two issues. Something wrong with the networking. For some reason it doesn't load my project into the container. I am ...
user avatar
  • 119
0 votes
1 answer
52 views

JetBrains suddenly stopped working on second screen

I've had two screens for a while now (working on windows). As of this morning, PHPStorm suddenly won't work on the monitor it's been working on for months! By not working, I mean that when I drag it ...
user avatar
1 vote
0 answers
99 views

Strange files shows up in my /home when Ubuntu starts

Recently, I've noticed some strange files showing up in my /home directory every time when I turn on/restart my computer. They just appears and the names means nothing, I can delet them as normal ...
user avatar
  • 661
1 vote
0 answers
42 views

Live template for doc style comments in PhpStorm

How to set a live template in PhpStorm so that when I hit enter for a new line, it automatically adds an asterisk? Or maybe there is another way to do it, e.g. wrap with comments action? /** * More ...
user avatar
  • 201
0 votes
1 answer
1k views

PHPStorm 2017.1 fails running remoted phpcs: "ERROR: The file ~/.phpstorm_helpers/... does not exist"

QUESTION UPDATE: I had mistakenly used the revision number for PHPStorm. The correct version is 2017.1, not 2017.3 as initially stated. I recently updated to the latest PHPStorm (2017.1 March) and ...
user avatar
  • 8,193
1 vote
1 answer
220 views

How make fonts render in PhpStorm2017.1 good

In PhpStorm 2016.3 on Ubuntu fonts in IDE rendering perfectly, but in new version 2017.1 it's now again look bad. How do I make the fonts look good again? Solution for me: I copied jre folder from ...
user avatar
1 vote
0 answers
57 views

How to get ssh information automatically in phpstorm remote server list?

I have to work with lots of remote server for different projects. It's too much annoying to update the same ssh informations every time for ssh terminal, phpstorm, filezilla, sequel pro and others. ...
user avatar
  • 111
0 votes
0 answers
1k views

Adding and using 'PHP' External Libraries into JetBrains PhpStorm?

I'm having this problematic issue: Anyone have an idea of whats going on, I have added the path to the folder in the 'Include Path' configuration in 'Settings' and still it's giving me that.
user avatar
  • 101
0 votes
1 answer
499 views

FTP upload - Failed to open “C:\Apache24\…\uploads\image2.png” for reading because it is not a file

I would like to upload some files including .php and images to server. I tried it via Filezilla and PhpStorm. All php files has been transferred well, but some images throws me an error with text: ...
user avatar
  • 247
0 votes
2 answers
2k views

Wacom Intuos with touch scrolling not working in PhpStorm

I work with my mac in a doc so the touchpad isn't used most of the time so I use a mouse or my Intuos Pen & Touch pad. Scrolling works normally in almost all applications except PhpStorm which is ...
user avatar
  • 151
0 votes
1 answer
273 views

PhpStorm 2016.2 Change the Debug Panel Font Size

The editor and the console font size can be changed with ctrl+mouse wheel (ref), but how do you change the debug panel font size? I've been all through Colors & Fonts and haven't been able to find ...
user avatar
  • 347
0 votes
1 answer
885 views

How do I configure a Less file watcher's output directory?

How do I configure a less file watcher to put the output css file into the same directory as the less file, rather than in a 'css' folder in the parent directory. I've read the help here: https://www....
user avatar
0 votes
1 answer
43 views

Redundant repetitive documentation links in PhpStorm quick-documentation when adding them manually

I'm using Php Storm 2016.2.1. To access the quick documentation for the jQuery API inside the IDE, I've got the jquery.d.ts from GitHub. When I introduce the file to the IDE through the form at File / ...
user avatar
  • 151
0 votes
1 answer
177 views

How to change the blue foreground color of text in PHPStorm?

How to change the blue foreground color of text in PHPStorm IDE? I would like to be a Cyan color (#00B0F6).
user avatar
0 votes
1 answer
74 views

phpStorm: global project favorites

i found out there's a favorites toolbar in phpstorm but it seems like it's only storing the current project's favorites. is there a way having a global favorites projects/folders list which is ...
user avatar
  • 773
0 votes
1 answer
94 views

How can I stop PHPStorm tooltips from blocking the typing view?

This is getting to be rather annoying and has only really started happening recently (or I've only started noticing it recently) but the the documentation tooltip in PHPStorm has been coming in the ...
user avatar
  • 113
2 votes
0 answers
632 views

How to access the port of a reverse SSH tunnel on the hosts loopback device from within a Docker container?

I have the Xdebug PHP extension installed in a Docker container that runs the PHP-FPM of my development and testing environment. A debugging client (the one build-in PhpStorm) listens on port 9000 on ...
user avatar
0 votes
1 answer
349 views

How do I limit phpStorm to open files just from my defined scope?

I would like to know if it is possible to use this dialog window filtered to just one scope. I find this very useful, but unfortunately frameworks have tons of files I never want to edit, and ...
user avatar
2 votes
6 answers
2k views

Phpstorm not starting after memory dump error

I got an error message that not enough memory while pushing code and then I pressed the "Shutdown" button on that error and since that popup phpstorm does not start. Double clicking on the icon does ...
user avatar