Questions tagged [phpstorm]
PHPStorm is a commercial IDE for PHP, HTML and Javascript
103 questions
-1 votes
1 answer
58 views
WebStorm creates empty attribute value when inserting a template
How to stop WebStorm/PHPStorm from including the unnecessary empty attribute value in the inserted template? For example, when I type v3c, instead of this: <script setup lang="ts"> It ...
1 vote
0 answers
241 views
What might be the reason for slow SFTP connections to local virtual machine?
I have an Ubuntu 22.04 server on VMWare Workstation on my local development machine (Windows 10) for development purposes. It runs Apache/MySQL and has sufficient allocated memory and CPU. When ...
2 votes
0 answers
648 views
Need to change WSL default path in Explorer from \\wsl.localhost\\ to \\wsl$\\
After some update Windows 11 started using by default "\\wsl.localhost" path in explorer instead of "\\wsl$" to access files on WSL disk: access to WSL files from explorer So, some ...
0 votes
2 answers
260 views
Why is title bar for phpstorm hidden for some windows?
I'm running phpstorm on Ubuntu with Gnome. The title bar disappears for some of the projects, but not all of them. Phpstorm is the only program that has this issue. How do I fix it? I always want the ...
2 votes
1 answer
2k views
PHP Xdebug and WSL2
I have installed PHPStorm via snap into WSL version of Ubuntu because of this phpstorm/wsl2 defect I cannot use the Windows version of PHPStorm as it freezes frequently. When it works Xdebug works ok ...
1 vote
1 answer
346 views
How to make custom tags valid on PHPStorm?
There are some valid tags <esi:include dca="esi" onerror="continue" src="{{ esi_bottom_url }}"/> in some HTML files but PHPStorm reports them as bugs. How to make ...
0 votes
0 answers
93 views
PhpStorm function name suggestion with variables
How to make PHPStorm code completion to suggest function name with variables, not only it's name? For example, I have next function: function sample1($understandable_variable_name1, &$...
0 votes
2 answers
1k 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 ...
0 votes
0 answers
117 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 ...
1 vote
1 answer
4k 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=*&...
0 votes
1 answer
188 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 '$...
0 votes
1 answer
204 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 ...
0 votes
0 answers
777 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, ...
0 votes
2 answers
941 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"...
2 votes
0 answers
369 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 ...