PhpStorm, my favorite IDE, is one of the best IDEs for working with PHP based web projects Make the most of PhpStorm to develop with php HTML / CSS / JavaScript editor with all the features of webstorm The Best php IDE for fullstack development and docker container and images management Continuing on, I created an entity, and once again PHPStorm is drawing red underlines on almost everything.PhpStorm master class. So I ignored this since the site actually loads fine as I get the default Symfony landing page. I have a fresh install of Symfony 5 and right out of the box PHPStorm shows an error in Symfony's /src/kernel.php file stating that the "class must be declared as abstract or implement methods.". Hi All, trying to get PHPStorm to play nice with Symfony 5. Now we're really ready to go! I've already got my my site running on localhost:8000 and we've got a nice looking 404 page since there isn't anything inside of here yet. But I am going to restart one more time because there are a few small features that will not work until you do this. The checkbox had a note that it requires a restart, that's mostly not true. Do that just one time per project - not bad! Back in preferences, search Symfony and check the 'Enable Plugin for this Project' checkbox. You only need to install the Symfony plugin once, but each time you start a new project you will need to enable it. Perfect.Ĭlose out of this window, and then press ok and restart PHPStorm. Find that one in the search and install it. The other plugin that you are definitely going to want to install is this called 'PHP Annotations'. So press the 'Install Plugin' button to get this added to our IDE. To prove how great it is just look at its 1.2 million downloads. The "Symfony2 Plugin" was renamed to "Symfony Support" - install this instead Click 'Browse Repositories', here you see the community plugins for Symfony and there's one called the 'Symfony2 Plugin'. Back in preferences if you search for Symfony it brings you to a plugin spot. But the real power with Symfony comes from an amazing plugin. So PHPStorm is the best editor I've ever seen. Then you can even unmark them if you want to. If you ever need to see those in the tree again you can just switch back to 'project' and they'll reappear. Let's also do this on the knpu directory.Īnd now we can change the view in the upper left from 'project' to 'project files'. Right click tuts, find 'mark directory as' and select 'excluded'. Any time you have a directory that you don't want PHPStorm to look into, or that you just don't want to see, you can hide it. I use these to help me build this tutorial - but when I'm coding, I don't want to see them. Over here on the left, you can see the tuts and knpu directories. And now I can change the font size to 14 and give it a line spacing of say 1.2. So first let's click 'save as' so we can customize this, save it as 'darcula mine'. I can't immediately change the font size I've got because that would change the Darcula scheme. Let's pick font here and there's font size. This pulls up a few things, general appearance, colors & fonts. On Windows and Linux, it's the longer Ctrl+ Alt+ S - you can check out the key mappings under the keymap section, to see and simplify these. Back to preferences, on a mac its shortcut is ⌘, so I'll start using that. Speaking of eyes, I'd like to see my font size a bit bigger here. Staring into a white screen for 1,000+ hours a year is very similar to just staring at a lightbulb - not so great on the eyes. This is the theme of the UI which also goes and sets the scheme for the editor. Let's clean that up first: open up preferences and in Appearance under Appearance & Behavior you can select your theme, change that to Darcula. If I open any of my files right now you'll see that they look pretty ugly. So download your own copy and let's customize this thing together. I'm working with a fresh version of PHPStorm, this is not how I want my development environment to look - all this white is stressing me out. For even deeper information about PhpStorm settings and shortcuts, youĬan also check out Beginner's Guide to PhpStorm - Tips & Tricks.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |