I am new to linux in general and have figured out the different programs belong to different groups. I can easily solve my own problem by typing sudo all the time. But I'd rather understand the why of the problem and fix it permanently.
I've installed php as part of the lamp-stack. Everything work fines. However when I open a file with PHPStorm or Sublime Text I have problems working with files. I can get around this already by typing.. sudo chown -R myusername /path/to/file
I've read that I can use umask to explore this further. But that's as far as I can figure out so far.
How can I permamently set permissions in the programs (phpstorm, sublime text) so that they can work with the files in /var/www/html so that they can be worked with without using sudo to open them, or keep having to change ownership of them all the time?