EnvFile icon indicating copy to clipboard operation
EnvFile copied to clipboard

.env syntax highlight support / PHPStorm support

Open ssipos90 opened this issue 7 years ago • 8 comments

Hello,

Do you plan on including support for PHPStorm? It would be nice.

Thanks!

ssipos90 avatar Feb 20 '17 13:02 ssipos90

What run configurations you would like to be supported in PHPStorm?

ashald avatar Feb 22 '17 17:02 ashald

I don't personally use run configurations within PhpStorm, but it'd just be great to have syntax highlighting available in .env files.

vlucas/phpdotenv is used in several big PHP frameworks (e.g. Laravel).

JackWH avatar Feb 25 '17 13:02 JackWH

This plugin doesn't provide syntax highlight for .env files. Yet. Although that's a nice idea and I'lll see whether it's something that can be added.

ashald avatar Feb 25 '17 16:02 ashald

@Ashald, the plugin doesn't work on PHPStorm. I have two use cases, one using Behat for PHPStorm to run acceptance testing and I've wrote a php wrapper to call behat, but that lead to all sorts of issues. At this point, i have a small sh that sources my .env file and executes the behat through CLI.

ssipos90 avatar Mar 14 '17 09:03 ssipos90

So if I U understand you right you looking for Behat run configuration support in PhpStorm? OK, I'll take a look!

ashald avatar Mar 14 '17 12:03 ashald

Additionally:

  • PHPUnit
  • PHP Script
  • PHP HTTP Request

Would be nice!

natebrunette avatar Jun 02 '17 23:06 natebrunette

Hi, 2018-08-20 23 12 34 Enjoy!

alex-kovalchuk avatar Aug 20 '18 20:08 alex-kovalchuk

@alex-kovalchuk .env syntax != .ini syntax You can install .env files support plugin. It has syntax highlighting starting from 0.7 version. https://plugins.jetbrains.com/plugin/9525--env-files-support

adelf avatar Sep 01 '18 14:09 adelf