JetBrains IDEs

For our Open Source work, the Wikimedia Foundation (and the community) received a number of licenses for the All Products Pack of JetBrains (in doing it, we're thanking JetBrains for the support of our projects). The licenses allows an attached user to use all JetBrains desktop products, as described on the JetBrains website (Get access to all desktop products including IntelliJ IDEA Ultimate, ReSharper Ultimate and other IDEs). If you use a JetBrains product (such as the IntelliJ IDEA Ultimate or PhpStorm) to contribute open source code for MediaWiki or MediaWiki extensions, please consider requesting a license key from one of the account administrators.

How do I get a license?
To request a license, simply write an e-mail or contact one of the account administrators via IRC: You'll get an e-mail with an invitation link for one of our licenses, which will, after you clicked the link, connects a license with your JetBrains account (if you don't have one yet, you'll need to create one). Please note, that we have a limited number of licenses only, and even if we're sure, that you can get a license, we want to make sure, that the people, who actively contribute code to one of our projects, can get the benefit of a license. This means, that we'll check, if you're an active contributor to one of our projects, before sending you an invitation link. There're no big things you need to accomplish (such as a specific amount of changes per day or something else, that would be ridiculous, as we're thankful for anything you do for our projects!). However, if you never contributed code to our projects, or your last change is a resonable time ago (e.g. over a year or so), we maybe will ask you some questions ("Why do you want a license?" for example). But don't hesitate and simply ask us, if you can get a license :)
 * Sam Reed (reedy in, sreed [AT] wikimedia [DOT] org)
 * Yurik Astrakhan (yurik in, yurik [AT] wikimedia [DOT] org)
 * Florian Schmidt (FlorianSW in, florian.schmidt.stargatewissen [AT] gmail [DOT] com)

What product should I use?
Like written above, the MediaWiki open source project owns licenses for the All products pack of JetBrains, which includes all desktop products (like PhpStorm, IntelliJ IDEA Ultimate, Webstorm and so on). Some products share some functionality, so it can be difficult to choose the correct product. You probably heared from this page because someone suggested you to use PhpStorm. Even if this isn't false, and PhpStorm is a good product, we would like to encourgae you to choose the IntelliJ IDEA Ultimate, which includes some more features and language support as PhpStorm. If you plan to contribute to projects other then the PHP based ones in MediaWiki, it probably could be a benefit, that you already use the "non-plus-ultra" product. However, as all products are included anyway, you can choose the product you like the most, if you've one.

MediaWiki code style
MediaWiki has it's own and specific code style for PHP, JavaScript, JSON and some other languages. The JetBrains products allows you to define all of your coding conventions in the project settings, so that the IDE supports you as best as it can, e.g. by automatically format the code you write. The following XML code is a snapshot of the settings of the coding convention for PHP, JSON, JavaScript and LESS. It may be incomplete and misses some other languages. So if you want to extend it, feel free to simply add the settings for the coding convention.

If you want to import the settings, please copy the code and save it as a file on your computer. Now import the settings in the JetBrains IDE (File -> Settings -> Code Style -> Scheme -> Manage -> Import...).