Code Editor or IDE with code completion or support for Silverstripe?


#1

What code editor or IDE has code completion or support for Silverstripe?


#2

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 :slight_smile:


#3

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


#4

I’m using VSCode. It’s free and has some silverstripe related packages available.


#5

+1 for VSCode. I have these extensions installed currently for SS dev:

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)


#6

I find xdebug in vscode quite bad, it’s not as usable as NetBeans


#7

Am using vscode but it always autocompletes template conditional codes with </div> though


#9

I use atom with a bunch of plugins. Works a charm and I even just worked out how to automagically add namespaces.


#10

+1 for PhpStorm.

Have this plugin: GitHub - raket/idea-silverstripe: IDEA plugin for the SilverStripe framework

Completion is very good.


#11

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…?


#12

i’m using vscode ,it is very nice