Sublime Text2 配置日记

吐槽:

打算好好配置下Sublime,拖到这么晚还没睡我也是很拼。

学校事情太多,比较心累,万恶的形式主义。

最后15天,然后卷铺盖滚蛋。

下了几个插件,保存下具体的信息。太晚了,白天在看。

2015.6.15

Package Control Messages
========================

ConvertToUTF8:
-------------

  ConvertToUTF8
  ==================
  With this plugin, you can edit and save the files which encodings are not supported by Sublime Text currently, especially for those used by CJK users, such as GB2312, GBK, BIG5, EUC-KR, EUC-JP, etc.

  Configuration
  ------------------
  Please check ConvertToUTF8.sublime-settings file for details. You should save your personal settings in a file named "ConvertToUTF8.sublime-settings" under "User" folder.

  * encoding_list: encoding selection list when detection is failed
  * max_cache_size: maximum encoding cache size, 0 means no cache (default: 100)
  * max_detect_lines: maximum detection lines, 0 means unlimited (default: 600)
  * preview_action: converting the file‘s content to UTF-8 when previewing it (default: false)
  * default_encoding_on_create: specific the default encoding for newly created file (such as "GBK"), empty value means using sublime text‘s "default_encoding" setting (default: ‘‘)
  * convert_on_load: convert the file‘s content to UTF-8 when it is loaded (default: true)
  * convert_on_save: convert the file‘s content from UTF-8 to its original (or specific) encoding when it is saved (default: true)
  * convert_on_find: convert the text in Find Results view to UTF-8 (default: false)
  * lazy_reload: save file to a temporary location, and reload it in background when switching to other windows or tabs (default: false)

  Contact me
  ------------------
  Please send me your questions or suggestions: sunlxy (at) yahoo.com or http://weibo.com/seanliang

  For more information, please visit: https://github.com/seanliang/ConvertToUTF8

SublimeCodeIntel:
----------------

  SublimeCodeIntel
  ================

   ____        _     _ _                 ____          _      ___       _       _
  / ___| _   _| |__ | (_)_ __ ___   ___ / ___|___   __| | ___|_ _|_ __ | |_ ___| |
  \___ \| | | | ‘_ \| | | ‘_ ` _ \ / _ \ |   / _ \ / _` |/ _ \| || ‘_ \| __/ _ \ |
   ___) | |_| | |_) | | | | | | | |  __/ |__| (_) | (_| |  __/| || | | | ||  __/ |
  |____/ \__,_|_.__/|_|_|_| |_| |_|\___|\____\___/ \__,_|\___|___|_| |_|\__\___|_|
  A full-featured code intelligence and smart autocomplete engine for Sublime Text.
     (Code intelligence plugin ported from Open Komodo Editor to Sublime Text)

  +-------------------------------- HELP WANTED ---------------------------------+
  |     Maintaining this project is hard, I do it in my spare time, but I‘m      |
  |     basically all alone. If anyone is interested in contributing, please     |
  |     contact me. I really need much more help maintaining SublimeCodeIntel    |
  |                                                                              |
  |                       Follow me on twitter @germbravo                        |
  |           You can find us at #sublimecodeintel on irc.freenode.net           |
  |                                                                              |
  |             If you like SublimeCodeIntel, please make a donation:            |
  |        http://sublimecodeintel.github.io/SublimeCodeIntel/donate.html        |
  +------------------------------------------------------------------------------+

  Features
  --------

  Supports all the languages Komodo Editor supports for Code Intelligence (CIX, CodeIntel2):

  JavaScript, Mason, XBL, XUL, RHTML, SCSS, Python, HTML, Ruby, Python3, XML, Sass, XSLT, Django, HTML5, Perl, CSS, Twig, Less, Smarty, Node.js, Tcl, TemplateToolkit, PHP.

  Provides the following features:

  * Jump to Symbol Definition - Jump to the file and line of the definition of a symbol.
  * Imports autocomplete - Shows autocomplete with the available modules/symbols in real time.
  * Function Call tooltips - Displays information in the status bar about the working function.

  + Shortcuts for jump to definition have changed:

    For Mac OS X:
      * Jump to definition = ``Control+Click``
      * Jump to definition = ``Control+Command+Alt+Up``
      * Go back = ``Control+Command+Alt+Left``
      * Manual CodeIntel = ``Control+Shift+space``

    For Linux:
      * Jump to definition = ``Super+Click``
      * Jump to definition = ``Control+Super+Alt+Up``
      * Go back = ``Control+Super+Alt+Left``
      * Manual CodeIntel = ``Control+Shift+space``

    For Windows:
      * Jump to definition = ``Alt+Click``
      * Jump to definition = ``Control+Windows+Alt+Up``
      * Go back = ``Control+Windows+Alt+Left``
      * Manual CodeIntel = ``Control+Shift+space``

  Notes
  -----

  ** Restart Sublime Text after reading this **

  More information
  ----------------
  Please take the time to read the documentation:

  In case of trouble, please read the Troubleshooting section in the README.

  * Online - http://sublimecodeintel.github.io/SublimeCodeIntel/
  * Git - https://github.com/SublimeCodeIntel/SublimeCodeIntel

  IMPORTANT
  ---------

  Do NOT edit the default SublimeCodeIntel settings. Your changes will be lost
  when SublimeCodeIntel is updated. ALWAYS edit the user SublimeCodeIntel settings
  by selecting "Preferences->Package Settings->SublimeCodeIntel->Settings - User".
  Note that individual settings you include in your user settings will **completely**
  replace the corresponding default setting, so you must provide that setting in its entirety.

CTags:
-----

  =====
  CTags
  =====

  .. image:: https://travis-ci.org/SublimeText/CTags.svg?branch=development
      :target: https://travis-ci.org/SublimeText/CTags

  About
  =====

  This `Sublime Text 2/3`_ package provides support for working with tags
  generated by `Exuberant CTags`_

  .. _Sublime Text 2/3: http://sublimetext.com/
  .. _Exuberant CTags: http://ctags.sourceforge.net/

  The ctags command is searched for on the system PATH. It works by doing a
  binary search of a memory-mapped tags file, so it will work efficiently with
  very large (50MB+) tags files if needed.

  See this `forum thread`_ for a bit of historical background on the Sublime Text plugin.

  .. _forum thread: http://www.sublimetext.com/forum/viewtopic.php?f=5&t=144

  Installation
  ============

  The easiest way to install this plugin, is to use the `Package Control`_
  plugin, by `Will Bond`_

  .. _Package Control: http://wbond.net/sublime_packages/package_control/
  .. _Will Bond: http://wbond.net/

  Alternatively, the plugin can be installed manually using one of the following
  methods.

  Using Git
  ---------
  Go to your Sublime Text Packages directory and clone the repository
  using the command below::

    $ git clone https://github.com/SublimeText/CTags

  Manual Download
  ---------------

  * Download the files using the .zip download option
  * Unzip the files (and rename the folder to CTags if needed)
  * Copy the folder to your Sublime Text Packages directory

  Additional Setup Steps
  ======================

  OS X
  ----

  The default ``ctags`` executable in OSX does not support recursive directory
  search (i.e. ``ctags -R``). To get a proper copy of ctags, use one of the
  following options:

  * Using `Homebrew`_::

      brew install ctags

  * Using `MacPorts`_::

      port install ctags

  .. _`Homebrew`: http://mxcl.github.com/homebrew/
  .. _`MacPorts`: http://www.macports.org/

  Ensure that the ``PATH`` is updated so the correct version is run:

  * If ``which ctags`` doesn‘t point at ctags in ``/usr/local/bin``, make sure
    you add ``/usr/local/bin`` to your ``PATH`` ahead of the folder
    ``which ctags`` reported.
  * Alternatively, add the path to the new ``ctags`` executable to the settings,
    under ``command``. If you have Xcode / Apple Developer Tools installed this
    path will likely be ``/usr/local/bin/ctags``.

  Linux
  -----

  To install ctags use your package manager. 

  * For Debian-based systems (Ubuntu, Mint, etc.)::

      sudo apt-get install exuberant-ctags

  * For Red Hat-based systems (Red Hat, Fedora, CentOS)::

      sudo yum install ctags

  And so forth

  Windows
  -------

  * Download the `CTags binary`_ from the `Exuberant CTags`_ site.
  * Extract ``ctags.exe`` from the downloaded zip to
    ``C:\Program Files\Sublime Text 2`` or any folder within your PATH so that
    Sublime Text can run it.
  * Alternatively, extract to any folder and add the path to this folder to
    the ``command`` setting.

  .. _CTags binary: http://prdownloads.sourceforge.net/ctags/ctags58.zip

  Usage
  =====

  This uses tag files created by the ``ctags -R -f .tags`` command by default
  (although this can be overriden in settings).

  The plugin will try to find a ``.tags`` file in the same directory as the
  current view, walking up directories until it finds one. If it can‘t find one
  it will offer to build one (in the directory of the current view)

  If a symbol can‘t be found in a tags file, it will search in additional
  locations that are specified in the ``CTags.sublime-settings`` file (see
  below).

  If you are a Rubyist, you can build a Ruby Gem‘s tags with the following
  script::

    require ‘bundler‘
    paths = Bundler.load.specs.map(&:full_gem_path)
    system("ctags -R -f .gemtags #{paths.join(‘ ‘)}")

  Settings
  ========

  By default, Sublime will include ctags files in your project, which causes
  them to show up in the file tree and search results. To disable this behaviour
  you should add a ``file_exclude_patterns`` entry to your
  ``Preferences.sublime-settings`` or your project file. For example::

    "file_exclude_patterns": [".tags", ".tags_sorted_by_file", ".gemtags"]

  In addition to this setting, there‘s a ``CTags.sublime-settings`` file, which
  can be edited like any other ``.sublime-settings`` file

  * ``filters`` will allow you to set scope specific filters against a field of
    the tag. In the excerpt above, imports tags like ``from a import b`` are
    filtered::

      ‘(?P<symbol>[^\t]+)\t‘
      ‘(?P<filename>[^\t]+)\t‘
      ‘(?P<ex_command>.*?);"\t‘
      ‘(?P<type>[^\t\r\n]+)‘
      ‘(?:\t(?P<fields>.*))?‘

  * ``extra_tag_paths`` is a list of extra places to look for keyed by
  * ``(selector, platform)``. Note the ``platform`` is tested against
    ``sublime.platform()`` so any values that function returns are valid.
  * ``extra_tag_files`` is a list of extra files relative to the original file
  * ``command`` is the path to the version of ctags to use, for example::

      "command" : "/usr/local/bin/ctags"

    or::

      "command" : "C:\Users\<username>\Downloads\CTags\ctag.exe"

  The rest of the options are fairly self explanatory.

  Support
  =======

  If there are any problems or you have a suggestion, `open an issue`_, and we
  will receive a notification.

  .. _open an issue: https://github.com/SublimeText/CTags/issues

  Thanks :)

  Commands Listing
  ================

  ==============================  ================  ===========  ======================
  Command                         Key Binding       Alt Binding  Mouse Binding
  ==============================  ================  ===========  ======================
  rebuild_ctags                   ctrl+t, ctrl+r
  navigate_to_definition          ctrl+t, ctrl+t    ctrl+>       ctrl+shift+left_click
  jump_prev                       ctrl+t, ctrl+b    ctrl+<       ctrl+shift+right_click
  show_symbols                    alt+s
  show_symbols (all files)        alt+shift+s
  show_symbols (suffix)           ctrl+alt+shift+s
  ==============================  ================  ===========  ======================
  
时间: 2024-10-07 20:31:47

Sublime Text2 配置日记的相关文章

Sublime Text2 配置tab为2个空格

点击 Preference -> Settings-User 1 "tab_size":2, 2 "translate_tabs_to_spaces":true Sublime Text2 配置tab为2个空格,布布扣,bubuko.com

Sublime Text2配置python环境

1.下载python并安装 地址:https://www.python.org/downloads/ 2.下载Sublime Text2 并安装 地址:http://www.sublimetext.com/ 3.安装插件 Package Control 在 Sublime 里直接安装附加插件的包管理器.这是唯一一个你必须手动安装的插件.这边列出的其他所有插件都可以通过 Package Control 来安装.也可以通过它来更新已安装过的插件.简单得想做是 Sublime packages 的 a

sublime text2 配置tab为4个空格

Preference-defalut: [将Tab键自动替换为4个空格] // The number of spaces a tab is considered equal to "tab_size": 4, // Set to true to insert spaces when tab is pressed "translate_tabs_to_spaces": true, sublime text2 配置tab为4个空格

sublime text2 配置 java环境

配置sublime text2步骤如下: 1: Windows 使用下面代码创建文件runJava.bat @ECHO OFF cd %~dp1 ECHO Compiling %~nx1....... IF EXIST %~n1.class ( DEL %~n1.class ) javac %~nx1 IF EXIST %~n1.class ( ECHO -----------OUTPUT----------- java %~n1 ) 2:  将 批文件 runJava.bat 复制到 JDK

sublime text2 配置python 环境

写python的小程序,light同学推荐性感的Sublime text2 +JEDI(python自动补全插件). 首先安装sublime text2的"插件管理"插件package control: 打开sublime后,组合键"ctrl+~"调出控制台,将以下代码粘贴进命令行中并回车: 1 import urllib2,os;pf='Package Control.sublime-package';ipp=sublime.installed_packages_

把sublime text2配置的更好用,用到一点写一点

首先需要了解的 1,安装Package Control组件的方法: 按Ctrl+`调出console(注:安装有QQ输入法的这个快捷键会有冲突的,输入法属性设置-输入法管理-取消热键切换至QQ拼音) 粘贴以下代码到底部命令行并回车: import urllib2,os;pf='Package Control.sublime-package';ipp=sublime.installed_packages_path();os.makedirs(ipp) if not os.path.exists(i

sublime text2 配置php调试环境

步骤一: 首先确保你电脑安装了php,并把php设置到环境变量里了. 步骤二: 点击 sublime_text的“工具”->"编译系统"->"编译新系统" 步骤三:输入编译脚本 输入如下: { "cmd": ["php", "$file"], "file_regex": "^(...*?):([0-9]*):?([0-9]*)", "select

sublime text2 配置代码对齐快捷键

menu under Preferences → Key Bindings – User [{"keys": ["ctrl+shift+r"], "command": "reindent" , "args": {"single_line": false}}] 保存马上生效,并且不需要选中代码,可以直接用命令ctrl+shift+r就能对齐代码了

notepad++、sublime text 配置python开发环境

一. notepad++ 配置python开发环境 Notepad++ ->"运行"菜单->"运行"按钮中输入: cmd /k python "$(FULL_CURRENT_PATH)" & ECHO. & PAUSE & EXIT 注意:此时cmd命令行窗口一定要关闭,不然配置不成功,会显示python不是有效的命令.此时重启电脑再进行此项操作. Notepad++配置Python开发环境 :http://w