Nearly all of the interesting files for users live under the data directory. The data directory is ~/.config/sublime-text-3 for Linux

The Package Directory is located under the data directory. All resources for supported programming and markup languages are stored here.

You can access the packages directory from the main munu (Preference -> Browse Packages...), by means of an API call (sublime.packages_path()), and by other means that will be explained in later topics.

The packages folder may be referred to as Packages, packages path, packages folder or packages directory.

Packages/User is a catch-all directory for custom plugins, snippets, macros, etc. Consider it your personal area in the packages folder. Additionly, it will ocntains most of your personal application or plugin settings.

Updates to ST will never overwrite the contents of Packages/User.

ST is programmable, enabling users with programming skills to add their own features to the editor.

ST exposes its internal via an API that programmers can iteract with using the Python programming language. An enbedded Python interpreter is included in the editor. The embedded interpreter is useful to inspect the editor's settings and to quickly  test API calls while developing plugins.

ST and plugins output info to a console. To open the console, press Ctrl + ` or select View -> Show Console from the main menu.

ST3 comes with its own Python interpreter that's separate from your system's Python interpreter (if available). The embedded interpreter is only intended to interact with the plugin API, not for general development.

Almost every aspects of ST can be extended or customized. You can modify the editor's behavior, add macros and snippets, extend menus and much more. You can even create whole new features using the editor's API to build complex plugins.

ST's vast flexibility is the reason why you will learn about so many config. files: there simply  must be a place to specify all available preferences and settings.

Config. files in ST are text files that conform to a predefined structure or format: JSON predomimates, but you'll find XML files too. For the more advanced extensibility options, Python source code files are used.

In this guide, for brevity, we sometimes refer collectively to all these disparate configuration files as resources.

ST will look for resources inside the package folder. We'll take at length about packages later, but the short version is that, to keep things tidy, ST has a notion of a package, that is, a folder (or zip archive) that contains resources that belong together (maybe they help compose emails fast , write HTML efficiently, enhance the coding experience for C, Ruby, Go...).

Build systems let you run your files through external programs like make, tidy, interpreters, etc.

Executables  called from build systems must be in your PATH.

Build systems are JSON files and have the extension .sublime-build.

Build systems must be located somewhere under the Packages folder (e.g. Packages/User). Many packages include their own build systems.

Build sys. can be run by pressing F7 or from Tools->Build.

The sidebar provides an overview of the active project.

Files and folders in the sidebar will be available in Goto Anythng and project-wide actions like, for example, project-wide searches.

Projects and the sidebar are closely related. It's important to note that there's always an active project, whether it's explicit or implicit.

File opened from the sidebar create semi-transient views. Unlike transient views, semi-transient views show up as a new tab. The tab title of semi-transient views appears in italics. Before a new semi-transient view is opened, any other pre-existing semi-transient view in the same pane gets automatically closed.

Projects group sets of files and folders to keep your work organized.

There is always an active project. If you haven't created one, an implicit one is created by ST.

Set up a project in a way that suits you by adding folders, and then save your new config.. You can add and remove folders to/from a project using the Project menu or the side bar's context menu. If you drag a folder onto a ST window, it will be added to the project too.

To save a project, go to Project -> Save Project As...

Using the menu, you can switch projects by selecting Projects -> Recent Projects

Projects can define settings applicable to that project only.

You can open a project from the command line by passing the .sublime-project file as an argument to the subl command line helper included with ST. (What is
a command line helper?)

---------------------------------------------------------------------------------
ST can be fully customized. In the following topics, we outline the most common options. In particular, we don't cover themes, an immensely configurable area of ST.

ST stores config. data in .sublime-settings files. Flexibility comes at the price of a slightly complex system for applying settings. However, here's a rule of thumb.

Always place your personal settings files under Packages/User to guarantee they will take precedence over any other conflicting settins files.

Wiht that out of the way, let's unveil, to please masochistic readers, the mysteries of how settings work.

ST uses color schemes to HL source code and to define the colors of some items in the editing area: background, foreground, gutter, caret, selection...

Color schemes are fully customizable.

Installing Packages

Regular users rarely need to know how to install packages by hand, as automatic package managers are vailable.

The de facto package manager for ST is Package Control: the ST package manager that makes it exceedingly simple to find, install and keep packages up-to-date.

.by copying ST resources to a folder under Packages, or
.by copying a .sublime-package file to Installed Packages.

Sublime Text 3 笔记的更多相关文章

  1. 我的 Sublime Text 2 笔记

    作为aptana死忠粉的我,最近由于工作需要最近开始使用sublime,初次使用,就被其秒开的启动速度,简洁的界面设计,无干扰的信息提示所这幅. 俗话说,工欲善其事必先利其器,作为码农,在开始编码之前 ...

  2. Sublime Text 收藏笔记

    Sublime Text:初学者不知道的那些事 转载自: http://blog.jobbole.com/23949/

  3. sublime text 2 笔记

    sublime text 2 ,是代码程序员最佳编辑器,不是之一.其快捷优雅的操作风格,和便利的快捷键,是程序员码农的不二选择. 网上下载sublime text 2,支持文件拖放,文件夹拖放.3.0 ...

  4. Sublime Text学习笔记

    1.快捷键(Key Bindings)   Preferences -> Key Bindings ->Default   会打开一个配置文件,里面全是配置信息 2.代码片段(Snippe ...

  5. sublime text 3 笔记 简单配置

    一.首先我们去sublime text 3 去下载(http://www.sublimetext.com/) 下载完成后,打开页面 二.汉化 1.如图所示,点击菜单栏中“preferences”,弹出 ...

  6. Sublime Text 使用笔记(大全呀,菜鸟必看)

    下载和安装 Sublime Text2是一款开源的软件,不需要注册即可使用(虽然没有注册会有弹窗,但是基本不影响使用). 下载地址:http://www.sublimetext.com ,请自行根据系 ...

  7. Sublime Text 使用笔记

    常用快捷键 command+shift+d   # 复制当前行到下一行 .

  8. 【11-01】Sublime text 学习笔记

    >>>快捷键 CTRL+P ->根据文件名打开文件 “# 标识”“:行号” Ctrl+Shift+P -> 打开Package Control Ctrl+R ->查 ...

  9. Sublime Text 3设置笔记

    Sublime Text 3设置笔记 Sublime Text 3设置指南 1. 安装package control 下载package control源码安装包,并解压: http://yun.ba ...

随机推荐

  1. android strings.xml 报 is not translated in af,

    57 down vote In your ADT go to window->Preferences->Android->Lint Error Checking Find there ...

  2. (转载)java多态(2)-------Java转型(向上或向下转型)

    5.13.1 向上转型 我们在现实中常常这样说:这个人会唱歌.在这里,我们并不关心这个人是黑人还是白人,是成人还是小孩,也就是说我们更倾向于使用抽象概念“人”.再例如,麻雀是鸟类的一种(鸟类的子类), ...

  3. 安卓版微信内置浏览器,<a href="tel:电话号码"></a> 这个链接失效,不能跳到拨号界面?

    https://segmentfault.com/q/1010000000318831 在URL最后面加“ #mp.weixin.qq.com ”,应该加其他qq.com的二级域名都行,估计是微信的安 ...

  4. 矩形覆盖-我们可以用2*1的小矩形横着或者竖着去覆盖更大的矩形。请问用n个2*1的小矩形无重叠地覆盖一个2*n的大矩形,总共有多少种方法?

    class Solution { public: int rectCover(int number) { ; ; ; ||number==) ; ) ; ;i<number+;i++){ res ...

  5. Ubuntu Navicat正版永久使用方法

    最近技安不再带自己的mac book来公司工作了,公司多出来一个台式机,配置还挺高.于是乎就拿过来用了. 装上了Ubuntu14.04 LTS版,正常的开发工具如vagrant,vitualbox,s ...

  6. IOS开发之——意见反馈UITextView的使用+不能输入字符输入

    @interface DMFeedbackViewController ()<UITextViewDelegate,UIAlertViewDelegate>@property (nonat ...

  7. valueOf和toString

    有一道经典的题目: var add = function() {___}; console.log(add(3)(4)(5)); // 输出60 题目要求能无限相乘,请补充add函数. 首先很显然,a ...

  8. 第一个C语言编译器是怎样编写的?

    首先向C语言之父Dennis MacAlistair Ritchie致敬! 当今几乎所有的实用的编译器/解释器(以下统称编译器)都是用C语言编写的,有一些语言比如Clojure,Jython等是基于J ...

  9. 从士兵到程序员再到SOHO程序员

    2013年9月13日,我从就职了一年半的S公司正式离职,并开始了我梦寐以求的“SOHO程序员”之路. 这对于我来说,是一次人生道路上的重要选择,在这里,我想分享一下我是如何选择了这条道路的,同时也是对 ...

  10. 我给出的一份Java服务器端面试题-适合电话面试

    这部分内容,参考了<面试官的七种武器>一文. 电面与face2face的面试还是有区别的,很多考察方式无法使用. 从简历聊起,逐渐进入正题. Java语法 重载与重写的区别? java如何 ...