Visual Studio Code

Visual Studio Code is a free cross-platform IDE built on open source with a diverse plugin ecosystem that can be used for MediaWiki Development. It was designed by Microsoft.

You can download it for free https://code.visualstudio.com/

Notable features
This one might annoy you https://code.visualstudio.com/docs/getstarted/userinterface#_preview-mode

PHP Tools for VS Code
Licence required (after 1 month trial). Contact Addshore.

Notes


 * Simple refactorings are done through the "rename symbol" option not "refactor"
 * Very receptive to issues being filed, and fixes often in 1 day. (issue tracker)

Php Debug
Debug support for PHP with XDebug.

If you're using Windows, WSL2, or docker containers you might find this blog post useful.

The plugin comes with default configuration that will work in many cases.

Issues with path mappins
If you have problems with VSCode detecting the mappings between your files and the debug sessions you may need to set some path Mappings.

Avoid breaking on uncaught exceptions, warnings etc.
By default the plugin will break on "uncaught exceptions and errors / warnings / notices".

This may not be desirable and can be turned off.


 * 1) Using the sidebar, select the "Run" panel.
 * 2) At the bottom of the panel expand the "Breakpoints" section (collapsed by default).
 * 3) Untick the "Everything" option.

Phabricator links
Provides links to Phabricator objects.

files.autoSave
Annoyed by forgetting to save files and wondering why you can't see your changes? Check out this setting.

search.useIgnoreFiles
MediaWiki includes a .gitignore file that the IDE will use to ignore files and directories during search. In MediaWiki this includes the skins and extensions directories. In order to search files in these directories you will need to set the search.useIgnoreFiles to false in your project specific configuration or higher. A default of true may be useful in order projects, so the recommended location is in project configuration.

editor.wordSeparators
In order to allow selection of PHP variables (including the $) by double clicking on them you need to alter your editor.wordSeparators

You can do this for individual languages in your settings.json file

explorer.autoReveal
By default opening a new file will jump to that location in the sidebar. This can be annoying in large projects, the bellow will stop that jumping around!

Plugins to avoid

 * Render line endings: Has performance problems
 * Render whitespace at end of lines: Has performance problems