phpstorm

Specify php.ini in phpStorm

孤街浪徒 提交于 2020-01-11 10:27:19
问题 I've set-up my PHP environment with the $PHPRC environment variable to point to the php.ini . Since $PHPRC is set during bash start-up, it's never set for phpStorm. This means phpStorm is using the wrong php.ini for CLI. This is especially anoying since I do a lot of PHPUnit testing. How can I make phpStorm using the same php.ini ? I'd prefer to have a possibility to specifiy the php.ini somehow in phpStorm, but I cannot find such an option. In case this matters, I'm on OSX using MAMP PRO 2.1

phpstorm 永久激活方法

拟墨画扇 提交于 2020-01-10 11:39:45
# jetbrains 2019.3 永久激活方法 ## 使用方法: 0. 先下载压缩包解压后得到jetbrains-agent.jar,把它放到你认为合适的文件夹内。 下载页面:https://zhile.io/2018/08/17/jetbrains-license-server-crack.html 1. 启动你的IDE,如果上来就需要注册,选择:试用(Evaluate for free)进入IDE 2. 点击你要注册的IDE菜单:"Configure" 或 "Help" -> "Edit Custom VM Options ..." 如果提示是否要创建文件,请点"Yes"。 参考文章:https://intellij-support.jetbrains.com/hc/en-us/articles/206544869 3. 在打开的vmoptions编辑窗口末行添加:-javaagent:/absolute/path/to/jetbrains-agent.jar 一定要自己确认好路径(不要使用中文路径),填错会导致IDE打不开!!!最好使用绝对路径。 一个vmoptions内只能有一个-javaagent参数。 示例: mac: -javaagent:/Users/persi/jetbrains-agent.jar linux: -javaagent:/home/persi

How to prevent phpstorm to reload file without prompt when file on disk is changed?

感情迁移 提交于 2020-01-10 02:29:07
问题 When a file is open by phpstorm, and I make some changes without save. But at the same time, the file on disk is changed. Then phpstorm will reload the file from disk, without prompt. All my changes will lost. 回答1: Settings/Preferences | Appearance & Behavior | System Settings Untick Synchronize files on frame activation option Now PhpStorm will ask you what to do: you will have few options to choose from: Load File System Changes (load external changes from file) Keep Memory Changes (ignore

Mac PHPStorm快捷键总结

落花浮王杯 提交于 2020-01-09 18:55:34
【推荐】2019 Java 开发者跳槽指南.pdf(吐血整理) >>> PHPStorm可以自己设置快捷键 按住 command + , 打开Preferences 点击Keymap,右边出现下拉框 点击下拉框选择你想要的快捷键设置,eclipse快捷键比较常用 eclipse的快捷键今天在这里不做阐述,今天只说PHPStrom默认的快捷键 希望能给心理强迫症或洁癖的人带来福音😊 tips: ⌘——Command ⌃ ——Control ⌥——Option/Alt ⇧——Shift ⇪——Caps Lock fn——功能键就是fn 多说一点,各位touchBar的小伙伴,f1这种要按住fn键才能在touchBar上看见(也许说的有点蠢,但是我一开始是真的不知道怎么打出来这种😂) 编辑类 command + c 复制 command + v 粘贴 command + shift + v 从剪贴板里选择粘贴 command + x 剪切 command + delete 删除当前行 command + / 行注释/取消行注释 command + option + / 块注释/取消块注释 option + shift + ⬆️⬇️ 将当前行上移/下移一行 tab 向后缩进 shift + tab 向前缩进 option + ⬆️⬇️ 向上/下选取代码块 command + d 复制当前行

How to run tests in behat on firefox 48.0 using selenium stand alone server?

和自甴很熟 提交于 2020-01-09 08:05:06
问题 Previously I worked with Behat 3 and Stand Alone Server 2.45 and everything worked properly. I use PhpStorm as my IDE. Later, after installing the update of Firefox (ver. 48.0) my tests stop working. I also try to run tests with Selenium Standalone Server ver. 3.0.0-beta3 but Firefox browser not open. Is there any way to run tests under browser FF 48.0? Maybe someone would like to share information about the working configuration of Behat, FF48 and Stand Alone Server? 回答1: Starting the

How to run tests in behat on firefox 48.0 using selenium stand alone server?

橙三吉。 提交于 2020-01-09 08:03:10
问题 Previously I worked with Behat 3 and Stand Alone Server 2.45 and everything worked properly. I use PhpStorm as my IDE. Later, after installing the update of Firefox (ver. 48.0) my tests stop working. I also try to run tests with Selenium Standalone Server ver. 3.0.0-beta3 but Firefox browser not open. Is there any way to run tests under browser FF 48.0? Maybe someone would like to share information about the working configuration of Behat, FF48 and Stand Alone Server? 回答1: Starting the

Xdebug and PhpStorm remote does not work

不想你离开。 提交于 2020-01-07 06:34:11
问题 Is there a possibility to check if the web server is sending something to Chrome? I have setting up PhpStorm and the web server in the same way, I have read in 1000 tutorials, but my PhpStorm doesn't receive anything from chrome. Here are some settings: php.ini zend_extension="/usr/lib/php/20160303/xdebug.so" xdebug.coverage_enable=on xdebug.default_enable=on xdebug.profiler_enable=on xdebug.profiler_output_dir="/tmp" xdebug.remote_autostart=on xdebug.remote_port=9001 xdebug.remote_enable =

PHPstorm 6.03: changing editor font and size and use of tab key

三世轮回 提交于 2020-01-06 14:09:23
问题 I just downloaded PHP storm 6.03 and have been trying to change the editor font size (code view font size and font) but to no avail. Is this a bug or what? the tab could also be handy if it could break out of "",'',() {}. This feature is found in aptana where after typing the {some text here}, the user hits the tab key and leaves both braces. a handy trick could also help. Thanks 回答1: Settings | Editor | Colors & Fonts | Font ( P.S. Settings screen has search functionality -- top left corner

Disable Syntax Error Highlights on PHP Code in a JS File - PHPStorm

一个人想着一个人 提交于 2020-01-06 13:53:30
问题 I keep my pages' JS code in a separate .js file (ie. "properties.php" view would have a "properties.js" script file. In the JavaScript files, I have some PHP variables which I use with the JS. Something like: var var1 = <?php echo $var1; ?> The above doesn't trigger any syntax errors in the text editor. Sometimes I'll have PHP code that's a little longer: var left_by_user_id = <?php if(isset($id)){ echo $id; } else{ echo 0; } ?>; This will trigger syntax error highlighting in the editor. Is

Disable Syntax Error Highlights on PHP Code in a JS File - PHPStorm

生来就可爱ヽ(ⅴ<●) 提交于 2020-01-06 13:52:23
问题 I keep my pages' JS code in a separate .js file (ie. "properties.php" view would have a "properties.js" script file. In the JavaScript files, I have some PHP variables which I use with the JS. Something like: var var1 = <?php echo $var1; ?> The above doesn't trigger any syntax errors in the text editor. Sometimes I'll have PHP code that's a little longer: var left_by_user_id = <?php if(isset($id)){ echo $id; } else{ echo 0; } ?>; This will trigger syntax error highlighting in the editor. Is