Projects are stored on disk as XML files. Within a project, mount points are defined, each corresponding to a directory included in the project. An example is:
<project> <mount name="source" dir="src/impl"/> <mount dir="docs"/> </project>
The above projects consists of two mount points, one for source code and one for documentation. The first has been given a name, so when Open File in Project is used, it'll appear as source rather impl.
Apart from dir and name, the other per-mount point attributes are:
Patterns above are simple wildcard patterns (* and ? are supported), separated by commas. For example:
<project> <mount name="source" dir="src/impl" include="*.h,*.cpp" direxclude=".svn"/> <mount dir="docs"/> </project>
The above project has had the source mount point modified to include include .h and .cpp files, but not within the .svn directory.
Directories may be used as ad-hoc projects: simply drag a directory onto the Sublime Text window from Explorer, or use the Project/Open Directory menu item.
These General Preferences control the defaults used for projects: