Setup VS Code for Efficient PHP Development
blog.theodo.com
blog.theodo.com
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.
phpstorm is a work of art
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.
For some use cases the language specific IDEs can be better and getting access to all of them is quite pricey.
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").
https://sales.jetbrains.com/hc/en-gb/articles/207240845-What...
I tested VS Code on a side project and even for JS Intellij was better for me
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.
But for VSCode, the distinction just isn't there anymore. It has integrated debugging, refactoring, indexing, and all sorts of other language-specific features.
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.
And yes I sometimes wish it would be faster, but not enough to use something else with a quarter of the functionalities.
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.
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.
Remember, vscode extensions are written by third parties and not always very well-written.
The specific issue that became my last straw was automatic insertions of return char. I think linked to the intellisense plugin. But I just lost patience and went back to a reliable text editor.
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.
You can bump that date (and your experience), by making a pull request which I will happily review ;)
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.
The article also gave me an idea to try SQLTools (I am having lots of trouble with using pgAdmin4... )
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 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.
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.
If anything they complement each other as no one would accuse intellij of been quick to start often I'll whip into vscode for those edits.
Perhaps you’re imagining that at some point Microsoft will stop developing VSCode because it has served its purpose, leaving people with no options. In that situation, people can still use the software for free for a while, until the code rots enough that it won’t run. Possibly by then, volunteers in the open-source community will have started maintaining it. Even if there aren’t enough volunteers to maintain VSCode for free, anyone (such as JetBrains) could start a company that maintains their own fork of VSCode (which they can do because it’s open-source) and charges users to use it. In that case, we are no worse off than before VSCode was introduced; we just had a few years where the popular IDE was temporarily free.
Now I don’t think VSCode will kill its competitor, it’s not that good IMO.
I agree that VSCode is not yet good enough to kill off competitors like JetBrains, so there is little need to worry either way.
That’s right. Because they don’t care. They want a marketing product, dumped and aimed at commercial ide developers. VSCode is a free product, with the source code made available and developed by people for free, and for the benefit of microsoft.
So would you be opposed to participating in a free forum that is used as a marketing tool by a venture capitalist?
You also imply that because Microsoft is such a big company it can put more resources than the other editors can, thus having "unfair" advantage over the others? I understand your concern, but as far as I know Microsoft hasn't leveraged VSCode's market share to do anything unreasonable and alas, if they did I'm sure people would just fork the editor without all the BS of Microsoft.
And I'm not against IntelliJ and they make good editors, but I don't want to pay for their products if I any way can. If Microsoft gains goodwill of developers and a lot of users for their product, well good for them! About time they started doing that. I still dislike Windows as much as before, but hey I got now a great editor that is free and I love to use.
While I agree with most of your point, since VS Code is open source, can't the commercial IDE makers just borrow the good parts and ideas from VS Code and make their products better?
Sure, it won't mean anything to the sort of people who won't use a paid product for any reason. But it might sway people who are on the fence. Hopefully in the long run that will keep the competitive ecosystem healthy, and not just run all the commercial alternatives out of business.
I’ll agree with you paying IDE could get more love, but each of these apps have specific strength and weaknesses that make them their own niche. Choosing one or another purely on principals would be weird.
I'm curious; do you feel the same way about RedHat? Canonical? Java? What's the criteria for "this company is too big for me to trust their open-source products?"
What I want to support is open source projects built by genuinely independent communities or individuals. Also i support high quality paid ides such as those developed by jetbrains. As devs many of us want to be indies, but we dont want to pay for software - a bit of a catch 22.
The issue i have with large companies doing open source is that they use the movement as a marketing tool, and kill indie developers or small companies and truly independent communities, while their core products are still closed source and cross sold thanks to free bait.
I don't have the luxury to be principled. I just use whatever tools get the job done. Because when Friday afternoon rolls around, I'm going home to be with my kids.
Wrong. Competing is ALWAYS great for product and customers.
"Think about it for a moment: this kind of open source kills genuine businesses due to the monopoly position of the company “sponsoring” it."
I hate to break it to you, but the only open source projects that last are sponsored by big companies. Most people don't want to work on edge-case bug fixes unless they are paid.
You should be thanking big companies, regardless of Monopoly status, for giving us such great, free, software. Which I might add, took lots of money to create.
Check out https://vscodium.com/
All of these products “killed business models”.