What code editor or IDE has code completion or support for Silverstripe?
Most modern IDEs should be able to manage the Silverstripe code and provide code completion, etc. so in many ways it comes down to what you like and what other facilities you want to support in your workflow (eg. native support for things like git, SCSS, composer, etc.)
PHP Storm is a very popular choice, Netbeans works pretty well too. I’m sure there will be plenty of other suggestions from devs on here who will all have their favourites
There’s a template-plugin for PHPStorm, but standard PHP is supported by NetBeans, if you don’t want to spend money on your IDE.
To help your IDE understand SilverStripe syntax (e.g. the
private static $db properties) better, you can install the IDEAnnotator module as a dev dependency with composer
I’m using VSCode. It’s free and has some silverstripe related packages available.
+1 for VSCode. I have these extensions installed currently for SS dev:
- PHP Intellisense
- PHP Namespace Resolver
- Apache Conf
- Vagrantfile Support
- EditorConfig for VSCode
- Auto Rename Tag
- Bracket Pair Colorizer
- Color highlight
- Rainbow CSV
Collectively they provide autocompletion, auto include (
use statements), snippets, definitions, formatting etc.
(Edit Oct 31 2018: this post has a few likes so I updated it with my current faves)
I find xdebug in vscode quite bad, it’s not as usable as NetBeans
Am using vscode but it always autocompletes template conditional codes with
I use atom with a bunch of plugins. Works a charm and I even just worked out how to automagically add namespaces.
+1 for PhpStorm.
Completion is very good.
Am also using VSCode. Have added Ftp-sync to it, but am still looking for better options for synchronising local and remote files. Any recommendations? Ideally it would be a tool which recursively compares directories and files and allows users to run a file-diff/merge when changes are detected on a file…?
I think using VScode is little better
Macrabbit Espresso has a silverstripe extension that supports auto complete for .ss templates which is nice.