Welcome Guest, Not a member yet? Register   Sign In
Atom / VSC - code completion
#1

(This post was last modified: 05-04-2017, 01:05 PM by qury.)

Hi.

Currently i use Netbeans as my main IDE, however recently i got frustrated with the amount of background scanning it does.

I'm eyeing Atom and Visual Studio Code editors to see whether one of them can replace Netbeans for me.

The functionality i need and i have trouble setting up for Atom or VSC is the following:
- code completion (i can't get any of them to autocomplete classes and methods either for CI3 of for CI4)
- format on save (psr-2 works with plugins using php-cs-fixer), but i would like to tweak it to format according to  CI3 or CI4 style guide.
- navigator panel to show the method names within a class would be handy

So my question is, do you guys know any plugins or settings that would help me achieve the above?
Reply
#2

side note - take a look at phpstorm - amazing IDE and codeigniter code completion is pretty easy to add with an autocomplete.php file
in your application/config folder
https://www.jetbrains.com/phpstorm/
Reply
#3

(This post was last modified: 05-04-2017, 01:50 PM by marksman.)

I personaly use Atom as my text editor, in office we use PHPStorm it almost done everything with minimal configuration.

in atom:
code completion: I use to configure atom's snippet

format on save: php-cs would do but for me atom linter is better together with its sub package (php-lint, js-lint, etc). psr standards is configurable in xml file (ruleset.xml by default). I use to put my ruleset outside the project directory to make it my global coding standards.

- navigation: I think it is what you call "go to definition" if im not mistaken, its built in on phpstorm I forgot if I installed it in atom but I got what I want on both editor.
God Bless CI Contributors Smile
Reply
#4

Look: Atom PHP Environment + CodeIgniter 3 & 4
Reply
#5

(05-04-2017, 02:57 PM)natanfelles Wrote: Look: Atom PHP Environment + CodeIgniter 3 & 4

Thanks!!!!!
I was looking for this post as i've seen it before just could not find it.
Reply




Theme © iAndrew 2016 - Forum software by © MyBB