7/31/2023 0 Comments Phpstorm vs vscode![]() There is even Stackoverflow thread about this insanity: VScode formatter, keep open bracket at same line (PHP). This can drive a developer crazy! There is nothing worse in programming than a broken code formatter. While the opening bracket should stay on the same line. For example, the popular PHP formatter VSC extension formats the opening bracket of a fucntion at a new line: function test() I literally tried all VSC extensions, however, I could not find a single one that did what it needed to – properly format php code as per WordPress coding standards. As a WordPress theme developer, I have struggled for a long time for not being able to properly format php code in my WordPress themes. Out of the box, Visual Studio Code provides basic features for PHP development such as syntax highlighting, bracket matching, IntelliSense, however, you will soon notice that it is far from perfect. This means that, with a little patience and some tweaks, you can make your copy of VSC your best friend in software development. (nothing wrong with that) Apart from the fact that it is free, the other big advantage of Visual Studio Code is that it is very lightweight and at the same time highly customizable, thanks to thousands of community-created VS Code extensions. However, it is not (yet) widely adopted by professional php developers, many of whom still prefer to use paid IDE-s such as PhpStorm. ![]() ![]() In fact, with just a little customization, Visual Studio Code can also provide great support for many other languages or frameworks, including PHP and WordPress. Well, Visual Studio Code is not only about javaScript. “Wait, I am here for the PHP part“, you will say. It has built-in support for JavaScript IntelliSense, debugging, formatting and many other advanced language features. Visual Studio Code is an awesome modern free code editor and it does a great job at developing javaScript-based applications. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |