标签 sublime 下的文章

Sublime text3 安装插件管理器Package Control

之前在win上用sublime都是下载别人打包好的,里面基本包涵了所有的常用插件,所以也没想到自己安装插件。现在mac上都要自己装了。

原生的sb是没有Package Control插件管理器的,需要自己手动安装,安装方式很简单:

打开Sublime,按下Control + `(Mac)或者Ctrl + `(Windows),然后粘贴上下面的代码并回车:

import urllib.request,os; pf = 'Package Control.sublime-package'; ipp = sublime.installed_packages_path(); urllib.request.install_opener( urllib.request.build_opener( urllib.request.ProxyHandler()) ); open(os.path.join(ipp, pf), 'wb').write(urllib.request.urlopen( 'http://sublime.wbond.net/' + pf.replace(' ','%20')).read())

点击Preferences。如果安装成功了,Package Settings 、Package Control会出现在菜单里了。


so,我们来安装一个插件 Pretty JSON。

Pretty JSON是一个格式化json数据的插件,安装步骤如下:

1.按下CTRL + SHIFT + P并且输入Package Control: Install Package

2.在输入Pretty JSON,按下ENTER完成安裝

3.(可不调)按下Preferences > Package Settings > Pretty JSON > Settings - Default调整

默认快捷是 cmd+ctrl + j

Sublime Text2/3用户配置文件备份

关于将Subline Test打造的更漂亮的一些记录。

Package Control (Recommended)

If you have sublime package control installed, it's a breeze to install DefaultPlus.

If you don't have it installed, go here to learn how to install it. I really can't recommend it enough.

Open up the Tools->Command Pallette(⇧⌘P on OSX)

Type in install and select the Package Control: Install Package option.

Find Theme - DefaultPlusand hit Enter to install.

Git Install

You can install the theme and keep it updated by cloning the repo into your Packages directory.

To get to your packages directory, go into SublimeText and click on Preferences -> Browse Packages....

Now open up a terminal window and change your current directory to the the packages folder you opened

cd /path/to/packages/folder

Then clone the repository into the current directory under the name "Theme - DefaultPlus".

git clone https://github.com/mediachicken/sublimetext-defaultplus-theme "Theme - DefaultPlus"

Using the theme

Open up your settings Sublime Text -> Preferences -> Settings - User

Add (or change) the theme entry to "theme": "DefaultPlus Monokai.sublime-theme"

You can replace Monokai with any of the included themes. Make sure to change the color scheme too!

Theme Options

dplus_fat_tabs - If enabled, it will render large sized tabs.

dplus_bright_fonts - if enabled, it will use more legible fonts in the tabs/sidebar.

dplus_bright_minimap - if enabled, the minimap will be more vibrant in color.

dplus_bright_status_bar - if enabled, the bottom status bar will be vibrant in color.

- 阅读剩余部分 -