Monday 27 November 2017

Using VS Code for WordPress Development


If you keep up with the many different text editors and developer tools available, you may have heard of a newer IDE called Visual Studio Code. VS Code is a free, open source code editor that is lightweight like Sublime Text, but offers many of the same features as bigger IDEs like PhpStorm or WebStorm. In this article I’ll review some features and extensions of VS Code that I really appreciate, and show you how to make the most out of it for WordPress and general web development.
WordPress Integration
Out-of-the-box, VS Code doesn’t support WordPress and PHP in general as well as some other development environments like PhpStorm. Luckily, that’s easy to change by installing some extensions. I recommend installing the PHP Intelephense extension, which adds PHP auto-completions, symbol navigation support, and a much better way to find references in your workspace.
While that will add autocompletions for PHP core functions and any functions that you have defined in your project, it won’t pick up on any WordPress core functions. For that I recommend installing the WordPress Snippet extension, which adds helpful autocompletions for most WordPress core functions,
Source: https://managewp.org/articles/16705/using-vs-code-for-wordpress-development




source https://williechiu40.wordpress.com/2017/11/27/using-vs-code-for-wordpress-development/

No comments:

Post a Comment