Skip to content
| Marketplace
Sign in
Visual Studio Code>Programming Languages>PHP intellisense for codeigniterNew to Visual Studio Code? Get it now.
PHP intellisense for codeigniter

PHP intellisense for codeigniter

small

|
584,934 installs
| (16) | Free
Code completion for PHP codeigniter framework
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

PHP intellisense for codeigniter

This extension is developed for codeigniter framework 3.X (Don't support CI 4.X).

When there is system folder in you workspace, the extension will start and parse the files in your model folder. You can try to run CI: refresh Model command to figure out if this extension starts.

If you find any bug or suggestion, please add a issue here. It is better if you can add a PR as I'm too busy now to maintain this extension.

Attention: All the features is based on RegExp, so it is limited in some situation.

Features

code completion

It can provide code completion for all models and some system classes (include db, input and load).

  1. When you hint $this->, it will display db,input and the name of other classes ( For build in system class, db,input and load are supported. The others, such as Output nor config, is not supported ).
  2. When you select the class, it will insert the class with '-'. So while you type '>' it will display all the methods of the class.
  3. It supports method chaining only for db class.
  4. When you hint className::, it will display const and static variables. Won't work if you set ignoreSymbols to true.
  5. If you add or delete a model file, you now can use command 'refresh Model' to refresh the model folders.
  6. Support $CI->input and $this->CI->db. It works better in library classes.
  7. Support variables in models. Such as $this->mymodel->some_variables.

As for the library, the extension will not parse the file unless you open a file loaded the library. It means when you open a file that include the code $this->load->library('foo'), the extension will search for the file and parse it.

Document Symbol

Pressing F1 in VS Code, and type @. Then you can get all the methods in this file. It also work for outlink. Won't work if you set ignoreSymbols to true.

Goto definition

You can goto definition for all the models, libraries, their methods and const variables.
You can goto definition for view files, such as $this->lode->view('path'). There are also document links in the view files. (Thanks aswinkumar863 for his contribution.)

Hover

You can hover to get a method's documents.

Known issues

  • If you are using php extensions such as PHP IntelliSense and PHP Intelephense, you can set ignoreSymbols to true to remove duplicate hints.
  • If there are classes in one file, it may not work well. However, that is a rare situation. So there is no plan to fix it.
  • If there is a library that has the same name with a model, the library will be ignored as it is a litter troublesome to diff them.

Author's words

From now, the extension's all feature has been all done. Thanks for using.

Enjoy!

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft