Welcome Guest, Not a member yet? Register   Sign In
Sublimetext + Codeintel + Codeigniter
#1

[eluser]Stunt[/eluser]
If you love to use Sublimetext in your Codeigniter projects follow this steps,

- first download and install Sublimetext (last version is 2.0.1)
http://www.sublimetext.com

- open Sublimetext

- enable open file side from menu > "View" > "Side bar" -> "Show open files" & "Show side bar"




You can customize settings from "Preferences: -> "Settings - User"
it manner that how you are comfortable
for example this is my basic configuration :
Code:
{
"detect_indentation": true,
"fade_fold_buttons": false,
"font_size": 11.0,
"highlight_line": true,
"trim_automatic_white_space": false,
"trim_trailing_white_space_on_save": true,
        "ignored_packages":
[
  "Vintage"
]
}

- drag your Codeigniter project directory to side bar then save it as project. (Project menu > Save project as)

- download autocomplete helper file and just copy it in your application/config directory
link : https://raw.github.com/Stunt/Codeigniter...mplete.php
note: just put autocomplete.php file in codeigniter config directory. you never need to load it in your code. Sublime will index the file ..



- then you need to install Package Control
how to : http://wbond.net/sublime_packages/packag...stallation

- restart Sublimetext

- Open Package Control from Preferences menu
- goto "install package" (some users have problem with package control. instead you can manually install packages)





- then you need this packages :
Code:
** = required
* = recommend


** SublimeLinter
info: http://github.com/SublimeLinter/SublimeLinter
manual: https://github.com/SublimeLinter/SublimeLinter/zip/v1.6.9


** SublimeCodeIntel
info: http://github.com/Kronuz/SublimeCodeIntel
manual: https://github.com/Kronuz/SublimeCodeIntel/zipball/9e1b54f1de6fd579621fa213a6884f57604162fd


* Alignment
info: http://wbond.net/sublime_packages/alignment
manual installation: http://sublime.wbond.net/Alignment.sublime-package


* BracketHighlighter
info: https://github.com/facelessuser/BracketHighlighter
manual installation: https://github.com/facelessuser/BracketHighlighter/zip/master


* Git
info: https://github.com/kemayo/sublime-text-2-git
manual installation: https://github.com/kemayo/sublime-text-2-git/zip/master


* PhpDoc
info: https://github.com/SublimeText/PhpDoc
manual installation: https://github.com/SublimeText/PhpDoc/zip/master


* SFTP
info: http://wbond.net/sublime_packages/sftp
manual installation: http://sublime.wbond.net/SFTP.sublime-package



NOTE: IF YOU HAVE PROBLEM WITH CODEINTEL
how to fix sublimecodeintel plugin
If Codeintel doesnt work you need to recompile it
close sublime and
first :
Code:
$ sudo apt-get install g++
$ sudo apt-get install python-dev
$ sudo apt-get install php5-dev
$ sudo apt-get install libpcre3-dev
then : goto codeintel directory (ex: .../.config/sublime-text-2/Packages/SublimeCodeIntel/src)
and
Code:
sh build.sh

put this content to codeintel config (ex: .codeintel/config)
Code:
{
    "PHP": {
        "php": '/usr/bin/php',
        "phpExtraPaths": [],
        "phpConfigFile": 'php.ini'
    },
    "JavaScript": {
        "javascriptExtraPaths": []
    },
    "Perl": {
        "perl": "/usr/bin/perl",
        "perlExtraPaths": []
    },
    "Ruby": {
        "ruby": "/usr/bin/ruby",
        "rubyExtraPaths": []
    },
    "Python": {
        "python": '/usr/bin/python',
        "pythonExtraPaths": []
    },
    "Python3": {
        "python": '/usr/bin/python3',
        "pythonExtraPaths": []
    }
}

open Sublimetext and enjoy.

Checkout the full list of community-built packages for Sublime Text
Code:
http://wbond.net/sublime_packages/community

and at the end, never forget to follow Codeigniter recommended General Style and Syntax
Code:
http://ellislab.com/codeigniter/user-guide/general/styleguide.html
i like it
#2

[eluser]rebornishard[/eluser]
this thread need more attention, please update it when needed Smile

thank you
#3

[eluser]Unknown[/eluser]
any suggestion for codeigniter snippets, codeigniter ultitlies or codeigniter hellper...?




Theme © iAndrew 2016 - Forum software by © MyBB