PhpStorm
I am having a bunch of problems with PhpStorm. I love and hate it. Netbeans' settings were so much easier.
Right now I am trying to set it up so that all files use tabs, UTF-8 encoding, and LF line separators but it keep reverting to CRLF, windows-1252, and spaces. Anyone know what I'm doing wrong?
Re: PhpStorm
Reply #1 –
Also, I can't get PHPUnit to run with Vagrant.
Path mappings keep reverting.
Re: PhpStorm
Reply #3 –
Encoding should be under File->Settings->Editor->File Encoding
Open a project (or start one) then go to the above. You can set up the IDE and Project encoding. You can also set specific files / directories to UTF8 if needed, For that you select the directory or file and then click to the right side for the name under the Default Encoding column, you will get a drop down to set those as well, useful if things have gotten out of wack.
To set line endings to \n its Settings->Code Style (the parent not one of the languages) You should see line seperator for new files, set it to \n its probably set to System Dependent. You can set up a lot of very cool things in the code style and then save it as a scheme, allows you to have various schemes for projects since not all follow the same formatting etc.
Re: PhpStorm
Reply #4 –
I do that but every time I do it reverts to system dependent and the windows encoding.
Re: PhpStorm
Reply #5 –
Maybe you have to save it as a unique scheme and assign that to the project? I have a few schemes that I use, never used the default one. Just a though since I don't have the issue you are describing and thats the only diff that I can think of.
Re: PhpStorm
Reply #6 –
Every time I change something it creates a new scheme and then the project doesn't use that scheme. PhpStorm is really starting to piss me off.
Re: PhpStorm
Reply #8 –
Yeah, I need to do a lot better job at RTFM. I have had a sinus infection all week so my ability to pay attention in this cloud that my head is in is seriously limited.