phpstorm

How to install CLI interpreter to run .php file in PhpStorm?

我是研究僧i 提交于 2021-01-29 13:42:54
问题 I'm trying to open a .php file in Chrome for a while now but I couldn't because it seems like it doesn't have interpreter: Whenever I tried, it keeps on showing Object not found : When I use XAMPP, I have to type localhost just to make it appear but most of the time, it appears as 502 bad gateaway . I really need help because I'm kinda bad at programming. 来源: https://stackoverflow.com/questions/58814468/how-to-install-cli-interpreter-to-run-php-file-in-phpstorm

PhpStorm debug issue

大憨熊 提交于 2021-01-29 11:34:28
问题 I have the issue with the debugging application on local apache server with PhpStorm. After Apache is started the breakpoint is reached for the very first time, which is a good behavior and I can debug the part of code. However then I refresh the page in web browser and the breakpoint is not reached anymore, until I restart apache. Once apache is restarted I can reach the breakpoint - but just for the very first time. Has anyone of you had such issue? 回答1: PhpStorm 2020.3 PHP 7.2.20 Xdebug v2

How to configure debug mode with PhpStorm

旧巷老猫 提交于 2021-01-29 06:00:35
问题 I'm configured debug mode like following with PhpStorm and php.ini . PHP Buillt-in Web Server Settings HOST: localhost PORT: 9000 Document root: [Project root path] Interpreter options: artisan serve /usr/local/etc/php/7.3/conf.d/ext-xdebug.ini [xdebug] zend_extension=xdebug.so #zend_extension="/usr/local/Cellar/php@7.3/7.3.16/pecl/20180731/xdebug.so" xdebug.remote_enable=1 xdebug.remote_port="9000" IF I execute from Run button with PhpStorm, following messages come up at first page. /usr

PhpStorm icon near file name in Project View

家住魔仙堡 提交于 2021-01-29 03:07:34
问题 What mean this icon( checked ) near gulpfile.js ? Please look image 回答1: It's a bookmark -- you have bookmarked a file with ordinary bookmark. https://www.jetbrains.com/help/phpstorm/2017.1/navigating-with-bookmarks.html You can remove it in the same way how you set it up. Few ways actually: Select that file in Project View panel and while focus is still there activate Navigate | Bookmarks | Toggle Bookmark ( F11 using Default keymap on Linux/Windows) Bring Bookmarks screen in and remove any

SCSS Autoprefixer in PhpStorm

安稳与你 提交于 2021-01-27 21:28:39
问题 I am trying to configure SASS/SCSS Autoprefixer in phpstorm and no solution here or anywhere on google is working for me, any help is appreciated... I have tried many options including making a custom file watcher and using postcss-cli autoprefixer, but not able to get it right. 回答1: As it's written in this comment, there is no built-in support for autoprefixer, and it can hardly be expected in near future. If you miss it, please vote for WEB-37. You can install the autoprefixer ( npm install

PhpStorm can't resolve package import even though it exists (react-router-dom)

烂漫一生 提交于 2021-01-27 16:10:17
问题 I am using React (16.12.0) with PhpStorm (2019.3.1). The package I am importing is react-router-dom (5.1.2) I will write the following import: import { NavLink, Switch } from "react-router-dom"; Both packages are imported properly by webpack/babel and the page renders properly when I use both Switch and NavLink. However purely from the IDE-perspective, I get a warning about Switch: Cannot resolve symbol 'Switch' It is weird because it is obviously there, and I checked in /node_modules/react

PhpStorm can't resolve package import even though it exists (react-router-dom)

橙三吉。 提交于 2021-01-27 16:02:23
问题 I am using React (16.12.0) with PhpStorm (2019.3.1). The package I am importing is react-router-dom (5.1.2) I will write the following import: import { NavLink, Switch } from "react-router-dom"; Both packages are imported properly by webpack/babel and the page renders properly when I use both Switch and NavLink. However purely from the IDE-perspective, I get a warning about Switch: Cannot resolve symbol 'Switch' It is weird because it is obviously there, and I checked in /node_modules/react

Double click to select white space in PhpStorm

浪尽此生 提交于 2021-01-27 11:52:37
问题 In Sublime I can double click whitespace in-between two characters in order to select just the white space, e.g. in: $foo = 'bar'; Would result in the selection of: $foo████████= 'bar'; However in PhpStorm it selects the entire line. Is there a setting I can toggle so that whitespace can be selected with a double click in the same way I can double click a variable to select it. 回答1: This is currently not possible. There is an open issue requesting the functionality you describe on the bug

Double click to select white space in PhpStorm

心不动则不痛 提交于 2021-01-27 11:51:14
问题 In Sublime I can double click whitespace in-between two characters in order to select just the white space, e.g. in: $foo = 'bar'; Would result in the selection of: $foo████████= 'bar'; However in PhpStorm it selects the entire line. Is there a setting I can toggle so that whitespace can be selected with a double click in the same way I can double click a variable to select it. 回答1: This is currently not possible. There is an open issue requesting the functionality you describe on the bug

WebStorm/PhpStorm exclude file from search everywhere

烈酒焚心 提交于 2021-01-27 06:21:16
问题 When I search everywhere I would like to exclude JS and js.map files from the search results. ( I am using TypeScript ). My expected behaviour is to have these files omitted from Search Everywhere. Yes, I can mark the files as plain text, but that's cumbersome on a per file basis. I have used scopes: I have researched these links: PHPStorm exclude files by mask from indexing How to exclude file from PhpStorm global search (Ctrl+Shift+F) What am I missing? Can this be done? 回答1: You can