Home > Database > Mysql Tutorial > Centos下安装Sublime2.0.2(神级编辑器)

Centos下安装Sublime2.0.2(神级编辑器)

WBOY
Release: 2016-06-07 15:38:00
Original
1161 people have browsed it

今天在看 ueillemmx 的博客的时候,看到一神级编辑器,随即安装试了试,我了个去,果然好用,自动补全,自动对齐,样样精通啊! 下面是根据 ueillemmx 的步骤在CentOS上安装Sublime的过程: 1.从官网下载相应操作系统的下的安装包(http://www.sublimetext.co

    今天在看ueillemmx的博客的时候,看到一神级编辑器,随即安装试了试,我了个去,果然好用,自动补全,自动对齐,样样精通啊!

    下面是根据ueillemmx的步骤在CentOS上安装Sublime的过程:

    1.从官网下载相应操作系统的下的安装包(http://www.sublimetext.com/2),这里下的是linux下的安装包

    2.解压安装包,并将其放在/opt/下:

    tar -jxvf  "Sublime Text 2.0.2.tar.bz2" -C /opt/

    3.链接sublime的启动文件到/usr/bin,以便可以在终端使用sublime启动:

    ln -s /opt/Sublime\ Text\ 2/sublime_text /usr/bin/sublime

安装成功:

Centos下安装Sublime2.0.2(神级编辑器)


    4.建立桌面快捷方式,使用sublime新建sublime.desktop:

    sublime /usr/share/applications/sublime.desktop

    并在其中加入下面内容:

    [Desktop Entry]
  #Version=1.0

  Version = 2.0.2  

  Name=Sublime Text 2
  # Only KDE 4 seems to use GenericName, so we reuse the KDE strings.
  # From Ubuntu's language-pack-kde-XX-base packages, version 9.04-20090413.
  GenericName=Text Editor

  Exec=sublime
  Terminal=false
  Icon=/opt/Sublime Text 2/Icon/48x48/sublime_text.png
  Type=Application
  Categories=TextEditor;IDE;Development
  X-Ayatana-Desktop-Shortcuts=NewWindow

  [NewWindow Shortcut Group]
  Name=New Window
  Exec=sublime -n
  TargetEnvironment=Unity

    5.还可以将sublime加入惨淡右键:

    sublime ~/.local/share/applications/mimeapps.list

    加入以下内容:

    text/plain=sublime.desktop;

   

  常用命令:

  Ctrl+P 调出搜索栏

  Ctrl+R 调出函数列表

  Ctrl+Alt+A =号对齐

    

    有些功能的实现需要安装相应的插件,安装插件步骤如下:

    http://www.qianduan.net/essential-to-sublime-the-text-2-plugins.html

    Sublime Text 2入门及技巧:

    http://lucifr.com/139225/sublime-text-2-tricks-and-tips/

    解决Sublime Text 2中文显示出现乱码的问题:

    http://www.fuzhaopeng.com/2012/sublime-text-2-with-gb2312-gbk-support/

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template