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.

The Wikibase team at Wikimedia Deutschland is currently trialling its use as an IDE and this page serves as the documentation of that effort (hoping it will be useful or others).

IntelliJ IDEA Keybindings
Highly recommended if you are coming from PhpStorm or IntelijJ.

Php Debug
Debug support for PHP with XDebug

Setting up the connection with path mappings
For use with mediawiki-docker-dev you'll need to update the Xdebug config section in your launch.json to look something like the below (with added pathMappings) If you run MediaWiki in an environment with a different path, you may need to alter this.

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.

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

Live Share
TBA