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).

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)

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) Make sure to replace  with the relevant mediawiki path in the remote system or docker container (in mediwiki-docker-dev, this would be  )

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