phpstorm

Make phpStorm upload generated files together with original ones

*爱你&永不变心* 提交于 2020-01-06 13:13:03
问题 I have some build and compile tasks that generate new files, e.g. Now I need to upload those files to my server. I always upload the original file and forget about the compiled ones, as they aren't visible originally, but hidden behind the es6 file in this case. Is there any way to make phpStorm auto upload the compiled files whenever I upload the original? 回答1: there is ' Upload external changes ' option in Settings/Build, Execution, Deployment/Deployment/Options that allows updating files

PHP inspection reports CSS selector unused. It is used by a PHP echoed Tag

允我心安 提交于 2020-01-06 10:38:50
问题 I have PHP code which creates an HTML echo('<div id="keyboard">'); In my CSS I have #keyboard { } PHPStorm reports the CSS selector is not used. It is used. Can I make it realize that? In not, I once saw some way of disabling a single error or warning, but I can no longer find that in the documentation. 回答1: What you can try is to move the html out of the php script and just open the parentheses when needed. I suspect that the IDE cannot distiguish between php echoed html and html outside of

PhpStorm Symfony 4 ContactType class not recognized

主宰稳场 提交于 2020-01-06 06:43:40
问题 I have a very annoying problem today. I'm on Macbook Pro, PhpStorm 2017.3.6. I tried to create a simple Symfony 4 contact form but something goes wrong with PhpStorm, the class "Contact Type" isn't recognized at all. I already tried to: Clear and invalidate PhpStorm cache Clear Symfony cache Reboot the Macbook Updated PhpStorm to 2017.3.6 I also tried to create the formType with another names, like TotoType for example and it's working, so its only with ContactType that's not working. I use

How to move cursor word by word in PhpStorm integrated terminal?

蹲街弑〆低调 提交于 2020-01-06 04:50:48
问题 I can't use my zsh shortcuts to move the caret by word in PhpStorm's integrated terminal window using i.e. ⌥ → like I use in Terminal App on my Mac. I have tried to use zsh as shell path in PhpStorm but my default zsh color scheme is not showing well inside of PhpStorm. Seems that also Mac Terminal->Settings shortcuts are not being enabled inside PhpStorm terminal. 回答1: I have found out that it work only if I bind the shortcuts directly in my ~/.bash_profile , by adding this at the bottom:

Debugging with XDebug + PHPStorm force me to always step into

做~自己de王妃 提交于 2020-01-06 03:59:05
问题 I am trying to debug my Codeception tests. My debug platform using PHPStorm + XDebug is working great when using from browser with the right IDE-KEY as cookie. However, when trying to debug codecept using the CLI I encounter the following problem: If I put a breakpoint in my Cest class, behavior is normal. I am able to skip functions and click "Resume" to stop debugging. But whenever I put a breakpoint that is in my code (I.E controllers or my namespace classes), xdebug becomes unusable: If I

Can I indicate dynamic type returned to PhpStorm?

♀尐吖头ヾ 提交于 2020-01-06 03:32:04
问题 I have 3 classes like : class Foo { static function test() { return new static(); } } class Bar extends Foo {} class Baz extends Foo {} Now if call : $var = Bar::test(); I want PhpStorm to identify $var as the called_class , here: Bar . But, if I do $var = Baz::test(); $var is Baz instance. How can I get the dynamic called_class to indicate to PhpStorm what type is returned? I there a syntax like /** @return "called_class" */ to help PhpStorm and indicate the type? 回答1: First you have an

PhpStorm - Xdebug, Waiting for incoming connection idekey

只谈情不闲聊 提交于 2020-01-05 08:00:52
问题 I've searched a lot for this problem when debugging php using PhpStorm 2016.3 with xdebug, but still not working with error "Waiting for incoming connection idekey xxx". php.ini PhpInfo Debug Settings Server Config And Run Config I have already enabled the "Listening for PHP debug connections". Any help highly appreciated, thanks all ! 来源: https://stackoverflow.com/questions/40668606/phpstorm-xdebug-waiting-for-incoming-connection-idekey

Spaces / align of variable definitions in IntelliJ

早过忘川 提交于 2020-01-05 03:38:19
问题 I have this: $accountNr = $csvData[2][1]; $firstname = $csvData[3][1]; $lastname = $csvData[4][1]; $telephone1 = $csvData[5][1]; $telephone2 = $csvData[6][1]; $telephone3 = $csvData[7][1]; $telephone4 = $csvData[8][1]; $email1 = $csvData[9][1]; $email2 = $csvData[10][1]; $email3 = $csvData[11][1]; $email4 = $csvData[12][1]; $address1 = $csvData[13][1]; $address2 = $csvData[14][1]; $zip = $csvData[15][1]; $state = $csvData[16][1]; I want this: $accountNr = $csvData[2][1]; $firstname = $csvData

Spaces / align of variable definitions in IntelliJ

本小妞迷上赌 提交于 2020-01-05 03:38:12
问题 I have this: $accountNr = $csvData[2][1]; $firstname = $csvData[3][1]; $lastname = $csvData[4][1]; $telephone1 = $csvData[5][1]; $telephone2 = $csvData[6][1]; $telephone3 = $csvData[7][1]; $telephone4 = $csvData[8][1]; $email1 = $csvData[9][1]; $email2 = $csvData[10][1]; $email3 = $csvData[11][1]; $email4 = $csvData[12][1]; $address1 = $csvData[13][1]; $address2 = $csvData[14][1]; $zip = $csvData[15][1]; $state = $csvData[16][1]; I want this: $accountNr = $csvData[2][1]; $firstname = $csvData

How to remove brackets highlighting in WebStorm?

大憨熊 提交于 2020-01-05 02:31:49
问题 This color cover the brackets. I don't want this. How to remove the setting? 回答1: This comes from Editor > Color Scheme > General in your IDE Settings. The setting you are looking for is under Code and is called Matched Brace . On the right you should see a couple different settings which will allow you to control the way the matched braces look. For example, to remove the lime green border you can uncheck the Effects checkbox. In your case, I believe it's likely that you have the Foreground