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.

JetBrains PhpStorm is a lightweight and smart that aims to improve developer productivity. It provides smart code completion, quick navigation, and on-the-fly error checking. It can help you to shape your code, run unit-tests, and provide visual debugging.

JetBrains PhpStorm licensing and updates policy:

Also JetBrains provides two discounts:

Resources

7435 questions
546
votes
5 answers

Can IntelliJ IDEA encapsulate all of the functionality of WebStorm and PHPStorm through plugins?

I am in the market for a new IDE but am confused about the overlap between some of Jetbrains' offerings. It looks like IntelliJ IDEA has plugins that allow you to do Node.js and php development. Can IntelliJ IDEA do everything that WebStorm and…
mr.freeze
  • 13,731
  • 5
  • 36
  • 42
402
votes
30 answers

How do you debug PHP scripts?

How do you debug PHP scripts? I am aware of basic debugging such as using the Error Reporting. The breakpoint debugging in PHPEclipse is also quite useful. What is the best (in terms of fast and easy) way to debug in phpStorm or any other IDE?
Marcel
  • 6,143
  • 15
  • 46
  • 52
390
votes
19 answers

How to make phpstorm display line numbers by default?

How to make phpstorm display line numbers by default? Couldn't find that option. It's kind of annoying to turn them on manually for each page.
domino
  • 7,271
  • 12
  • 36
  • 48
365
votes
5 answers

WebStorm/PhpStorm double quotes in TypeScript auto import

I'm using TypeScript style with single quotes, double quotes are used exclusively in HTML templates. WebStorm/PhpStorm auto import adds import statements with double quotes and ruins the style. I guess this applies to all JetBrains products. How can…
Estus Flask
  • 206,104
  • 70
  • 425
  • 565
297
votes
7 answers

JetBrains / IntelliJ keyboard shortcut to collapse all methods

I'm working on some legacy code that has a class that is 10,000+ lines of code and has 100s of methods. Is there a shortcut for any JetBrains IDE (since the shortcut would likely be shared across all of them) to collapse all the methods / functions…
Brad
  • 6,106
  • 4
  • 31
  • 43
266
votes
14 answers

Cannot ignore .idea/workspace.xml - keeps popping up

Using PHPStorm, I am trying to ignore the workspace.xml which pops up every-time I try to make a git commit. My .gitignore looks like: /.idea/ .idea/workspace.xml Because at a point the file was committed, I've also executed: git rm --cached…
Valentin Despa
  • 40,712
  • 18
  • 80
  • 106
258
votes
6 answers

Difference between WebStorm and PHPStorm

I'm choosing an IDE for web development and I would like to know what the differences between WebStorm and PHPStorm are. I couldn't find any major points on JetBrains' website and even Google didn't help that much. All I know now is that PHPStorm…
Filip Kraus
  • 2,714
  • 2
  • 14
  • 16
233
votes
13 answers

Word wrapping in PhpStorm

How can I enable word wrapping in PhpStorm? I need to enable it only for some of my files (with extension .txt). Is it possible?
ozahorulia
  • 9,798
  • 8
  • 48
  • 72
223
votes
2 answers

How to display hidden characters by default (ZERO WIDTH SPACE ie. ​)

I just lost part of my weekend because of this ... joker - zero width space. I just used some snippets from google groups and didn't recognize that there are doubled characters, because Idea (11) didn't show them, which was causing problems with…
biesior
  • 55,576
  • 10
  • 125
  • 182
168
votes
9 answers

How can I set the PHP version in PHPStorm?

Is it possible to set the PHP version value, say 4.0+ and have PHPStorm highlight functions that wouldn't work with the oldest version? For example, for PHP4 this should highlight static function etc. I have a PHP installation on my PC but I don't…
Fluffy
  • 27,504
  • 41
  • 151
  • 234
156
votes
10 answers

Wrong syntax highlighting for PHP file in PHPStorm

I don't know what happened but syntax highlighting for one php file stopped to working and also icon next to the file has changed. It shows it's text file instead of PHP . How can I fix that ?
chubbyk
  • 6,212
  • 13
  • 53
  • 67
146
votes
5 answers

PhpStorm - Highlight active file in project navigator

Does anyone know how to highlight the current file in the project navigator, or a hotkey to expand folders to the active file? I have looked around and couldn't find anything that points to this as an option.
Ryan
  • 1,735
  • 2
  • 10
  • 13
136
votes
4 answers

Exclude folder from search but not from the project list

I have a few different project with the same core. All I need is to mark all not current projects as excluded to avoid searching through them (simple search, shift + cmd + n etc.) In other words I want to have a search results from the core +…
Vitalii Petrychuk
  • 14,035
  • 8
  • 51
  • 55
135
votes
8 answers

WebStorm: search does not work

I know that is used to search : Ctrl+Shift+F or Edit | Find | Find in Path and it worked before, but now always returns the empty set, although I know that what I'm looking for - there is in the project Maybe someone had this problem?
Lola
  • 2,591
  • 6
  • 24
  • 49
124
votes
2 answers

How to increase menu and tab font size in IntelliJ JetBrains PyCharm, PhpStorm, RubyMine

I understand how to increase the font size within an editor tab, but I'd like to increase the font size of the main navigation menu and most importantly, the tab titles. These do not change when I zoom in or out of an editor tab (using Cmd + mouse…
Superduper
  • 1,433
  • 2
  • 9
  • 14
1
2 3
99 100