phpstorm

How to remove brackets highlighting in WebStorm?

℡╲_俬逩灬. 提交于 2020-01-05 02:31:09
问题 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

Make PHP Storm Aware of Singleton Classes

删除回忆录丶 提交于 2020-01-04 09:35:29
问题 I have a piece of code like below and it works perfectly fine but PHP Storm doesn't show code completion and I am unable to CTRL+click to open the method. Is there a way to make PHP storm aware of the method's location for quicker opening? $data= MyCoolBusinessManager::Instance()->GetSomeData(); Just an FYI, I am also making use of the spl_autoload_register() function instead of having includes all over the place since my classes follow a standard naming format. 回答1: You need to put a PHPDoc

PhpStorm mapping paths

你离开我真会死。 提交于 2020-01-04 06:29:36
问题 I'm setup a docker container with SSH and FTP access. My local project looks like this: /Users/gezimhome/projects/ziprecipes.net/zip-recipes is my project dir. The source code for my WordPress plugin is in src folder. I have wordpress downloaded and extracted locally here in /Users/gezimhome/projects/ziprecipes.net/workdir/wordpress . Here are my deployment settings: My mappings: My server: In the docker container, wordpress is downloaded and uncompressed here: /usr/share/nginx/html/wordpress

PhpStorm relative path to resource root

陌路散爱 提交于 2020-01-03 17:20:36
问题 I use PhpStorm 9 and I have project structure similar to this: src/ elements/ element-alfa/ element-alfa.html element-alfa.scss templates/ application.html index.html I use Polymer so I have to import the elements when I use them. I also use AngularJS, which direct the app after load to application.html , but in fact paths are like from the index.html file. <link rel="import" href="elements/element-alfa/element-alfa.html"> I have set the src/ directory as RESOURCES ROOT so it does not tinged

Interactive shell in PHPstorm

痴心易碎 提交于 2020-01-03 10:40:07
问题 Is it possible to use Interactive shell in PHPstorm like PyCharm? 回答1: No, but there's a feature request for it you can track. 回答2: PhpStorm 10, released on November 2, 2015, has an interactive shell (or PHP "REPL"). To see it in action, you can try one of the Early Access Program (EAP) releases. As people seem to have trouble figuring out how to use the new feature, I attach a screenshot: 来源: https://stackoverflow.com/questions/11430996/interactive-shell-in-phpstorm

WebStorm 8.0.4 FTP Connection Fails

我的梦境 提交于 2020-01-03 08:55:11
问题 I am having same issue reported before in PHPStorm, when connecting with FTP in WebStorm 8.0.4. The error I get is: Could not list contents of the folder "ftp://real-meal.com/ Also tried Pasive and/or Compatibility modes. Working on Windows 8.1 x64. Sometime worked FTP navigation in "Browse Remote Host" menu, but after some playing with options (but restored to original) itsn't working anymore. Here is the Log File: 2014-10-04 20:45:09,933 [14500504] DEBUG - ains.plugins.webDeployment.ftp - >

PhpStorm live templates: is it possible to have any number of variables

一笑奈何 提交于 2020-01-03 04:47:10
问题 I want to create a template for an insert SQL block of code in PHP. Templates are great to fill in the same value where it is repeated numerous times. Is it possible to have the live template keep repeating certain blocks of code until I exit the template generation? For example I want the template to be able to cater for any number of variable in an Insert statement. It would be great if I can just enter variables until I'm done and the template repeats certain parts until I'm done. Please

How do I get xdebug/step-debugging working with ddev?

南笙酒味 提交于 2020-01-03 02:26:08
问题 I've been working with ddev on my Drupal projects, and now want to use xdebug so I have step-debugging with PhpStorm (or really any IDE would be fine). But I can't seem to get it to stop on breakpoints. I tried to follow the instructions in ddev docs but that doesn't do get me going, and I don't know what to do next. I did: Set the 172.28.99.99 IP address as discussed there Enabled xdebug using config.yaml xdebug_enabled: true and ddev start (and checked with phpinfo to see that xdebug was

How do I get xdebug/step-debugging working with ddev?

|▌冷眼眸甩不掉的悲伤 提交于 2020-01-03 02:25:16
问题 I've been working with ddev on my Drupal projects, and now want to use xdebug so I have step-debugging with PhpStorm (or really any IDE would be fine). But I can't seem to get it to stop on breakpoints. I tried to follow the instructions in ddev docs but that doesn't do get me going, and I don't know what to do next. I did: Set the 172.28.99.99 IP address as discussed there Enabled xdebug using config.yaml xdebug_enabled: true and ddev start (and checked with phpinfo to see that xdebug was

Run PHPUnit by terminal with Docker

北城以北 提交于 2020-01-03 01:28:10
问题 What I want I have project, where don't have docker/docker-compose. I want run PHP scripts - PHPUnit by terminal. Best would be working with PhpStorm. What I have File docker-phpez #!/usr/bin/env bash # echo "Current working directory: '"$(pwd)"'" docker run --rm -v $(pwd):/var/www -e SYMFONY_ENV=dev ezsystems/php:7.1-v1 php $@ Result Checking version Run this docker-phpez -v , give me: PHP 7.1.6 (cli) (built: Jun 12 2017 21:35:13) ( NTS ) Copyright (c) 1997-2017 The PHP Group Zend Engine v3