7 ms·
Setup VS Code for Efficient PHP Development
- kevinvdburgt 7y agoBeen using vscode for a long time now and just love using it! It feels more stable and smooth for me than using the phpstorm ide.
- duiker101 7y agoReally? Guess I'll have to give it a try. I am a hardcore IntellJ fan but it's good to see what's out there.
- charrondev 7y agoMy experience has been the following: VSCode is far and away the best IDE for typescript. Nothing comes close. PHPStorm is far better than VSCode for PHP. It is far better at handling imports, it’s debugging is more flexible and makes running individual tests much easier (and debugging them). It has code generation for boilerplate like constructors, getters, and setters. As another commenter mentioned it handles references in doc blocks far better as well. I can do some PHP programming in VSCode, but am far productive in PHPStorm. It’s the other way around for Typescript though so I run them both all day and have the keyboard shortcuts configured similarly.
- modzu 7y ago+1 phpstorm is a work of art
- steve_adams_86 7y ago> makes running individual tests much easier (and debugging them) This sort of polish is incredible. I love having it in RubyMine. If I had way more time I'd try to build a VS Code extension to make this work, but I really don't have the time. Little things like this make an IDE worth paying for.
- IloveHN84 7y agoWell IntelliJ Community Edition has so much limitations, like Enterprise part is only available in Ultimate.
- duiker101 7y agoWith the amount of value that I get out of IntellJ Ultimate considering I use it for every language I use (Java/PHP/Go/JS literally whatever) I am VERY happy to throw them $89/year (you get discounts for consecutive years, first year would be $149). That really feels like nothing and it's definitely well deserved.
- vishalh 7y agoIt's $499 a year and comes down to $299 after two years, much more expensive now - https://www.jetbrains.com/idea/buy/#commercial?billing=yearly https://www.jetbrains.com/idea/buy/#commercial?billing=yearl... For some use cases the language specific IDEs can be better and getting access to all of them is quite pricey.
- duiker101 7y agoThat's for organizations. I am talking IntelliJ Ultimate (no Resharper included) for individuals.
- reaperducer 7y agoI am VERY happy to throw them $89/year Is that $89/year so you can get updates each year, or does it stop working if you stop paying? I won't rent software ("SaaS").
- duiker101 7y agoUpdates. When you pay, you get a perpetual fallback license to that version https://sales.jetbrains.com/hc/en-gb/articles/207240845-What-is-a-perpetual-fallback-license- https://sales.jetbrains.com/hc/en-gb/articles/207240845-What...
- 7y ago
- nolok 7y agoKnow what you want. PHPStorm is an IDE. It can be used as a simple editor but compared to the other it sucks at it, very clunky. VS Code is an editor. It can be used as an almost IDE with refactoring and stuff but compared to the other it sucks at it, very clunky. I use both, for PHP and for Go, and they're very different beasts who both have their uses. It's weird to me that one could consider them in competition or having to "chose one" between them, unless you don't really know what kind of tool you want to work with.
- IAmEveryone 7y agoI know you've seen others use this line, and how smart they appeared doing so... But for VSCode, the distinction just isn't there anymore. It has integrated debugging, refactoring, indexing, and all sorts of other language-specific features.
- nolok 7y agoYes, and if you use VS Code for those features it's terribly far behind the competition. Even its auto completion for PHP (a very nicely supported language) is nowhere near as complete and reliable as the one from PHPStorm. As for refactoring, well, it's not even in the same league.
- cptn_brittish 7y agoSo does Emacs. Emacs also has multiple webrowsers and email clients out of the box. Those features do not make Emacs not a text editor though.
- jayflux 7y agoWe need to retire the IDE/Text Editor distinction. It really serves no purpose now other than to cause pointless debates or make people feel a bit more elite. The line is too blurred between the 2 and it doesn’t really matter anyway. Nearly all text editors these days are just modular IDEs, people add on the bits they want and do their work in them. May as-well just use IDE to describe all of them.
- wolco 7y agosublime is so much faster than both.
- deleted 7y ago[deleted]
- conradfr 7y agoSublime just doesn't do what PhpStorm (and others Jetbrain's IDE) does. And yes I sometimes wish it would be faster, but not enough to use something else with a quarter of the functionalities.
- wolco 7y agoWhat does phpStorm give you that sublime doesn't? Refactoring tools are nice and deployments configuration are nice but the tradeoff just loading the app in terms of speed can feel like minutes.
- deleted 7y ago[deleted]
- esistgut 7y agoLast time I checked PHP extensions on VSCode couldn't understand if the imports where actually used in the docblock annotations. Well, they couldn't undestand most of what was going on docblock annotations to be fair. Things like "organize imports" and "rename symbol" were missing too.
- trilila 7y agoI wont support VSCode for one reason (downvote to oblivion): it’s “open source” sponsored by a near monopoly corporation, which makes VSCode a marketing tool for Microsoft. This kills the business model of InteliJ which does a lot of work in making great IDEs. Basically, Microsoft is using its wealth to dump a free product on the market and to kill its competitors. Think about it for a moment: this kind of open source kills genuine businesses due to the monopoly position of the company “sponsoring” it.
- yoz-y 7y agoWhile I agree (and for the same reason think that it was actually a good thing for RSS that Google Reader was killed), it seems that the big companies can never win. If they make a closed source or paid tool the crowd will criticize them, if they make open source it ends up the same.
- manigandham 7y agoThere's nothing to "support", it's free software that you can use if you want, just like Vim, Atom, and Sublime. Open-source software has supplanted lots of commercial offerings over time. It's standard commoditization. VSCode isn't endangering any IDEs and has a very long way to go for all that functionality, most of which is provided by the community and not Microsoft. In case you didn't know, Microsoft itself has Visual Studio which has lost its own users to VSCode and Rider alternatives.
- mr_overalls 7y agoThe commoditization of software has been a trend for years. If Intellij wants to charge for a dev environment, they have to offer features that make it worth the cost.
- aikah 7y ago> I wont support VSCode for one reason (downvote to oblivion): it’s “open source” sponsored by a near monopoly corporation, which makes VSCode a marketing tool for Microsoft. You could say the same for every "open source" products backed by a Multi Billion dollars corp, React (Facebook), Go (Google), ... Java (Oracle). > This kills the business model of InteliJ which does a lot of work in making great IDEs I don't think so, PHPStorm is still miles aways in front of VSCode for PHP development, and there is no serious Java dev with VSCode either. Jetbrains will be OK. > Think about it for a moment: this kind of open source kills genuine businesses due to the monopoly position of the company “sponsoring” it. VSCode became popular because it learned from the philosophy of Textmate and Sublime Text: A good IDE should be first and foremost and excellent text editor. If anything VSCode "killed" Atom, but both belong to the same corporation. Now yes, Microsoft is getting unpaid developers working on their product. There is certainly a moral angle, but it's not really killing the paid competition.
- OnlyRepliesToBS 7y agopls stop
- factorialboy 7y agoI've tried VS Code multiple times. Without prejudice. Really want to make it my primary editor. After persisting with it for over a week, I had to revert back to Sublime. The typing experience of native is still just so much better.
- jjeaff 7y agoDo you have a decent GPU? Because electron is GPU accelerated and probably would make a difference. I have heard complaints from people with integrated graphics not getting a smooth experience. I'm very sensitive to issues like that and I find it buttery smooth. Though I am running it on a rather highly performance system.
- dmitrygr 7y agosign of the times: you need a good GPU to edit text
- keb_ 7y agoAh, so this is why VSCode runs fine on my desktop, but chugs on my otherwise decent Thinkpad? I've been using Sublime on my laptop for this reason, but do miss the advanced features of VSCode.
- panpanna 7y agoRuns just fine on my very underpowered Thinkpad. Although slightly faster on Linux than win10. Remember, vscode extensions are written by third parties and not always very well-written.
- felixfbecker 7y agoI am the author of the PHP Debug and IntelliSense extensions, awesome to see this get publicity on HN (aside from the Devsense fiasco https://news.ycombinator.com/item?id=18538432 https://news.ycombinator.com/item?id=18538432, lol)! If you're passionate about PHP in VS Code and are missing some feature or see some bug, please don't be afraid to jump into the code and do a PR! I've built them as a community project from the start, with as many comments as possible and (the language server) intentionally written in PHP so PHP devs can contribute. I actually don't get to write any PHP anymore nowadays, but I am always happy to review PRs!
- lmichelin 7y agoHello :-) Pleased to see that you appreciated my article and thanks for your great work on PHP debug for VS Code! I will do a PR with pleasure if the opportunity arises ;) Feel free to retweet my article btw ^^ https://twitter.com/lm_michelin/status/1152182328086732800 https://twitter.com/lm_michelin/status/1152182328086732800
- soulclap 7y agoSo are your IntelliSense extension and the PHP Intelephense extension competing solutions? Why? Isn't there a way to join forces? And I have to say that I've had better experiences with the latter. Also "last commit: 14.11.2018" on IntelliSense doesn't sound that great.
- felixfbecker 7y agoThey are fundamentally different - my language server is implemented in PHP so it can build on existing PHP parsers and PHP devs can contribute to it. Intelephense is written in TypeScript. They are two different approaches and both can coexist. You can bump that date (and your experience), by making a pull request which I will happily review ;)
- soulclap 7y agoLast time I tried the 'Getter & Setter' extension, it was quite a pain compared to PHPStorm. I had to click on each of my variables to generate a getter and setter. Wish it was just let me choose which variables I want to generate getters and setters (issers and hassers) for. I really like to work in VS Code when I am on my home laptop (as in: not at work) but things like these more or less force me to keep a PHPStorm trial version open in the background.
- kevinvdburgt 7y agoAnother thing why i prefer using vscode over phpstorm is that i can use vscode for almost every language. Mainly a php/react/typescript dev, but when working on other projects written in go, python or rust i just van use the same ide which i really like!
- 75dvtwin 7y agowould be great for VS Code to add OpenBSD support (I am using VSCode on Linux and Windows, but would like to move to OpenBSD since I no longer do dev work requiring phone emulators (which are unlikely to be on OpenBSD anytime soon)). The article also gave me an idea to try SQLTools (I am having lots of trouble with using pgAdmin4... )