Questions tagged [phpstorm]
JetBrains PhpStorm is a commercial IDE for PHP built on JetBrains' IntelliJ IDEA. PhpStorm provides an intelligent editor for PHP, HTML, CSS and JavaScript with refactoring and on-the-fly code analysis.
phpstorm
7,569
questions
0
votes
0
answers
26
views
PhpStorm - Parameter Type hints not appearing
Currently I've all Inlay Hints enabled in my PhpStorm settings:
But there are no type hints appearing beside the parameters on functions. I'm only seeing the Usages and Author as a hint above the ...
-4
votes
0
answers
26
views
How can I create a laravel project using PHP storm and how can I use the laravel libraries like auth and PHP spreadsheet in PHP storm
Im working on a laravel project but I want to know how to work with PHP storm like making sure the laravel/UI package and PHP spreadsheet libraries are incorporated
I tried importing a project I did ...
0
votes
0
answers
21
views
Problem in running Xdebug version 2 with PhpStorm
I have a problem with the working of Xdebug 2.1.29 with PhpStorm, PHP version 7.1.
My configuration xdebug.ini:
zend_extension=xdebug.so
xdebug.remote_enable=on
xdebug.remote_autostart=off
xdebug....
-1
votes
0
answers
29
views
In case of Laravel Blade file How to tag assets of a html file using PhpStorm easily at once?
I was just trying to find a shortcut for doing some manual jobs at once. I have a HTML file with below code. I want to convert it in Blade file. So I am tagging the assets files also I have changed ...
0
votes
1
answer
35
views
JetBrains IDE language injection rule for script type=text/x-twig
I'm writing html files that include several templates in Twig template language. These are later used with twig-js document.getElementById('my-template').innerHTML.
I want them to be highlighted as ...
-1
votes
1
answer
33
views
The composer does not work in PhpStorm. error ('""' is not recognized as an internal or external command, operable program or batch file)
I have composer installed and it works fine in cmd, PowerShell, PyCharm:
but not working in PhpStorm:
error: '""' is not recognized as an internal or external command, operable program or ...
0
votes
1
answer
29
views
How to extract all HTML elements style to one file in PhpStorm project or Bitbucket?
I'm building a Symfony project with lots of design.
I was wondering if there is way to extract all CSS styling of every element that has some with
style="..."
to a unique CSS file while ...
0
votes
0
answers
22
views
How to disable "Tools ->“actions on save” ->"Reformat code" option?
With PphStorm 2024.1 ( Build #PS-241.14494.237, built on March 27, 2024 ) on any saving of a current page I
see dialog “Reformat code” => “Processing”, which takes some time to process, especially ...
0
votes
0
answers
30
views
The title bar appeared abnormal after the JBR was replaced by a series of software owned by JetBrains
CLion IDEA, the software owned by JetBrains... When JetBrains Runtime (JBR) is replaced with oracle jdk or openjdk of a similar version, the title bar is displayed abnormally.
Replace previous title ...
0
votes
0
answers
50
views
Configuring Xdebug (PhpStorm docker) for scripts running in the background
Project stack: PHP 7.1 in Ubuntu image, Xdebug 2 and docker.
Architectural solution: a PHP script (server.php) is run on the server with this script:
#!/usr/bin/env bash
#!/usr/bin/env bash
#!/usr/bin/...
1
vote
0
answers
38
views
PhpStorm inspections on __call magic methods without knowing the name of the dynamic functions
The short version of this is, I want PhpStorm to know the datatype returned by a dynamic function call that is handled by __call. There is no way to know the name of the dynamic functions reasonably ...
0
votes
1
answer
18
views
PhpStorm EAP not showing in GitHub Desktop External Editor list
When I install JetBrains PhpStorm Early Access Program (e.g. PhpStorm 2024.2 EAP) in my WIN11 it is not showing up in GitHub Desktop's External Editor's List.
0
votes
0
answers
34
views
Why can't I use Xdebug in PhpStorm? I'm using PHP 8.1 and Xdebug 3.3
When I run Xdebug for my index page it gives me an error:
/bin/php -dxdebug.mode=debug -dxdebug.client_port=9003 -dxdebug.client_host=127.0.0.1 /var/www/html/thang/app/code/Smartosc/Thang/Controller/...
0
votes
0
answers
33
views
Infinity Indexing Loop in PhpStorm
I am having trouble searching through my file as the indexing keeps looping.
Stop it but it seems like it is not possible according to PhpStorm docs.
The status bar shows the progress of the indexing ...
0
votes
1
answer
56
views
How to see code differences regarding PHP versions in PhpStorm?
I expect to mark PhpStorm code differences with reference to lower PHP versions, but PhpStorm is not marking anything. I developed a code in PHP 8.2 and expect to see, what I have to change in code ...
-1
votes
1
answer
63
views
PhpStorm freezes with Copilot
In recent months, PhpStorm has shown freezes whenever Copilot is active and suggests some code, especially if I type something different from what is suggested.
Anyone has seen something like this? ...
0
votes
0
answers
21
views
Go directly in INSERT mode after clicking mouse in SELECT mode in IdeaVim plugin
I am using IdeaVim plugin for PhpStorm. Is it possible to go back in INSERT mode after highlighting some code with a mouse and eventually clicking in a specific place? Here is what I mean:
After I ...
0
votes
1
answer
49
views
How do you use @deprecated on a script file using PhpStorm?
Currently you can use the @deprecated annotation in classes, but how do I get my files to show a strike-through for script files that aren't attached to a class at all?
Why would you want to do this? ...
1
vote
0
answers
43
views
Connect to SFTP server with a public key
I have a host, a username and a public key as a string. How can I connect to the server?
PhpStorm asks me for the private key file, but I have a public key string.
Should I put the public key into a ...
0
votes
0
answers
32
views
Inspection in PhpStorm to add empty() to variables in IF clauses
I have tons of old code that needs to be updated. Is there a way to create an inspection in PhpStorm that will add empty() and !empty() accordingly in if-clauses? The easy examples would be:
if ($...
0
votes
0
answers
45
views
Xdebug is not working CLI debugging way, but WEB debugging works
My setup is Windows + WSL2 + Ubuntu + Docker, I'm running a Symfony project. Web debugging works fine, for example when I open some page and trigger some function, it works. However, when I run some ...
0
votes
0
answers
17
views
PhpStorm Terminal path
I try to copy paste the files and folder from mini-capstone-vue to mini-capstone.
In mini-capstone I open the terminal and the path is PS C:\xampp\htdocs\mini-capstone-vue>
My ask is why is the ...
0
votes
1
answer
18
views
How to hide the default magnifier in PhpStorm / IntelliJ IDEA?
I am tying to hide this magnifier section in PhpStorm. But I can't. Can anyone please help me with this?
I tried to fix this in the settings screen, but I can't find anyone.
I face the same issue in ...
1
vote
0
answers
44
views
Ctrl + Click go to JavaScript definition not working PhpStorm 2024
After updating PhpStorm to 2024.1 it's no longer possible to go to the declaration of a JavaScript function by Ctrl + Click
Broader context in the file.
-1
votes
1
answer
36
views
Switcher action does not work any more in PhpStorm
I add the Switcher action in PhpStorm but it doesn't work any more.
I have this setting Ctrl+Tab:
I have also verified my Tab key mapping as shown in Tab and Enter key do not work any more in the ...
0
votes
0
answers
28
views
Formatting issues with PhpStorm for React/RN
I'm having issues with my PhpStorm settings where it's wrapping on save. I'm not seeing any setting that would allow me to prevent this. I've confirmed it's not Prettier or ESLint causing the issue.
...
0
votes
0
answers
98
views
Angular 17 template code completion not working in PhpStorm 2024.1.1
I migrated project to Angular 17.3.6. Also updated PhpStorm to 2024.1.1 and there is recent Angular plugin. I cannot get IDE to provide code completion in Angular templates. Also it doesn't recognize ...
0
votes
0
answers
84
views
How in PhpStorm to show info about current git branch?
If there is a way in PhpStorm 2024 to show info about current git branch and number of files modified in the branch, maybe in status bar?
Working with git in PhpStorm I prefer make all commands under ...
0
votes
1
answer
89
views
Continuous Indexing Issue in PhpStorm
I am reaching out regarding a persistent issue I've been encountering with continuous indexing in PhpStorm.
For the past 24 hours, PhpStorm has been stuck in an indexing loop, causing significant ...
0
votes
1
answer
35
views
How in PhpStorm to hide/show Git remarks?
How can I get PhpStorm to hide/show(maybe on some hot key) Git remarks in code editor, like :
PhpStorm 2024.1