Skip to content

Latest commit

 

History

History
94 lines (68 loc) · 1.88 KB

sublime_text.rst

File metadata and controls

94 lines (68 loc) · 1.88 KB

Sublime Text Notes

This page contains notes on how to use Sublime Text with Drake.

This subsection lists various packages that we recommend you install.

https://packagecontrol.io/packages/CMake

https://packagecontrol.io/packages/SublimeLinter-cpplint

https://packagecontrol.io/packages/TrailingSpaces

To change your custom user preferences, go to "Sublime Text", "Preferences", "Settings - User." Then add the following:

Note that this only needs to be done on OS X since the full path appears by default on Linux machines.

To display the current file's full path in the title bar on OSX:

"show_full_path": true,

To show *.sdf files in the side bar:

"file_exclude_patterns":
[
    "*.pyc",
    "*.pyo",
    "*.exe",
    "*.dll",
    "*.obj",
    "*.o",
    "*.a",
    "*.lib",
    "*.so",
    "*.dylib",
    "*.ncb",
    "*.suo",
    "*.pdb",
    "*.idb",
    ".DS_Store",
    "*.class",
    "*.psd",
    "*.db",
    "*.sublime-workspace"
],

Note that the above list does not include *.sdf. This is expected since by default *.sdf does show up in the list.

To view an 80 character-wide ruler:

"rulers": [80],

Always displaying a ruler is useful to conform to :ref:`Drake's coding style <code-style-guide>`.