SublimeCodeIntel插件


智能的sublime插件,提高效率
资源截图
代码片段和文件信息
# ***** BEGIN LICENSE BLOCK *****
# Version: MPL 1.1/GPL 2.0/LGPL 2.1
#
# The contents of this file are subject to the Mozilla Public License
# Version 1.1 (the “License“); you may not use this file except in
# compliance with the License. You may obtain a copy of the License at
# http://www.mozilla.org/MPL/
#
# Software distributed under the License is distributed on an “AS IS“
# basis WITHOUT WARRANTY OF ANY KIND either express or implied. See the
# License for the specific language governing rights and limitations
# under the License.
#
# The Original Code is SublimeCodeIntel code.
#
# The Initial Developer of the Original Code is German M. Bravo (Kronuz).
# Portions created by German M. Bravo (Kronuz) are Copyright (C) 2011
# German M. Bravo (Kronuz). All Rights Reserved.
#
# Contributor(s):
#   German M. Bravo (Kronuz)
#   ActiveState Software Inc
#
# Portions created by ActiveState Software Inc are Copyright (C) 2000-2007
# ActiveState Software Inc. All Rights Reserved.
#
“““
CodeIntel is a plugin intended to display “code intelligence“ information.
The plugin is based in code from the Open Komodo Editor and has a MPL license.
Port by German M. Bravo (Kronuz). May 30 2011

For Manual autocompletion:
    User Key Bindings are setup like this:
        { “keys“: [“super+j“] “command“: “code_intel_auto_complete“ }

For “Jump to symbol declaration“:
    User Key Bindings are set up like this
        { “keys“: [“super+f3“] “command“: “goto_python_definition“ }
    ...and User Mouse Bindings as:
        { “button“: “button1“ “modifiers“: [“alt“] “command“: “goto_python_definition“ “press_command“: “drag_select“ }

Configuration files (‘~/.codeintel/config‘ or ‘project_root/.codeintel/config‘). All configurations are optional. Example:
    {
        “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“: []
        }
    }
“““
import os
import re
import sys
import stat
import time
import datetime
import collections
import sublime
import sublime_plugin
import threading
import logging

from cStringIO import StringIO

CODEINTEL_HOME_DIR = os.path.expanduser(os.path.join(‘~‘ ‘.codeintel‘))
__file__ = os.path.normpath(os.path.abspath(__file__))
__path__ = os.path.dirname(__file__)
libs_path = os.path.join(__path__ ‘libs‘)
if libs_path not in sys.path:
    sys.path.insert(0 libs_path)

from codeintel2.common import *
from codeintel2.manager import Manager
from codeintel2.citadel import CitadelBuffer
from code

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     目录           0  2013-01-25 15:09  SublimeCodeIntel-master
     目录           0  2013-01-25 15:09  SublimeCodeIntel-master.codeintel
     文件         167  2013-01-25 15:09  SublimeCodeIntel-master.codeintelconfig
     文件          28  2013-01-25 15:09  SublimeCodeIntel-master.gitignore
     文件        1185  2013-01-25 15:09  SublimeCodeIntel-masterase File.sublime-settings
     文件          86  2013-01-25 15:09  SublimeCodeIntel-masterContext.sublime-menu
     文件         288  2013-01-25 15:09  SublimeCodeIntel-masterDefault (Linux).sublime-keymap
     文件         120  2013-01-25 15:09  SublimeCodeIntel-masterDefault (Linux).sublime-mousemap
     文件         290  2013-01-25 15:09  SublimeCodeIntel-masterDefault (OSX).sublime-keymap
     文件         120  2013-01-25 15:09  SublimeCodeIntel-masterDefault (OSX).sublime-mousemap
     文件         288  2013-01-25 15:09  SublimeCodeIntel-masterDefault (Windows).sublime-keymap
     文件         120  2013-01-25 15:09  SublimeCodeIntel-masterDefault (Windows).sublime-mousemap
     文件        1170  2013-01-25 15:09  SublimeCodeIntel-masterDefault.sublime-commands
     文件       30869  2013-01-25 15:09  SublimeCodeIntel-masterLICENSE.txt
     文件        6315  2013-01-25 15:09  SublimeCodeIntel-masterMain.sublime-menu
     文件        6159  2013-01-25 15:09  SublimeCodeIntel-masterREADME.rst
     文件       43064  2013-01-25 15:09  SublimeCodeIntel-masterSublimeCodeIntel.py
     目录           0  2013-01-25 15:09  SublimeCodeIntel-masterlibs
     文件       20997  2013-01-25 15:09  SublimeCodeIntel-masterlibsHTMLTreeParser.py
     目录           0  2013-01-25 15:09  SublimeCodeIntel-masterlibsSilverCity
     文件        1601  2013-01-25 15:09  SublimeCodeIntel-masterlibsSilverCityCPP.py
     文件        2213  2013-01-25 15:09  SublimeCodeIntel-masterlibsSilverCityCSS.py
     文件         737  2013-01-25 15:09  SublimeCodeIntel-masterlibsSilverCityDispatchHandler.py
     文件        2364  2013-01-25 15:09  SublimeCodeIntel-masterlibsSilverCityHTMLGenerator.py
     文件        1715  2013-01-25 15:09  SublimeCodeIntel-masterlibsSilverCityHyperText.py
     文件        1570  2013-01-25 15:09  SublimeCodeIntel-masterlibsSilverCityJava.py
     文件        1449  2013-01-25 15:09  SublimeCodeIntel-masterlibsSilverCityjavascript.py
     文件       23122  2013-01-25 15:09  SublimeCodeIntel-masterlibsSilverCityKeywords.py
     文件        4175  2013-01-25 15:09  SublimeCodeIntel-masterlibsSilverCityLanguageInfo.py
     文件         607  2013-01-25 15:09  SublimeCodeIntel-masterlibsSilverCityLexer.py
     文件        1276  2013-01-25 15:09  SublimeCodeIntel-masterlibsSilverCityNULL.py
............此处省略380个文件信息

版权声明:本文内容由互联网用户自发贡献,该文观点仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容, 请发送邮件举报,一经查实,本站将立刻删除。

发表评论

评论列表(条)