My Sublime Setup

I am still finding myself using Sublime for almost all my coding, it is just an awesome tool and a beautiful one. Since the vim kids like to share their rc files, I thought I’d share my current package setup for Sublime. Note: I am still using Sublime 2, I guess simply because I didn’t bother to move to 3 yet, so that would probably make some of the following packages obsolete, I don’t know yet.

Of course the first thing and the only one to install manually should be Package Control, after which adding/removing packages becomes a breeze.


Sublime Code Intel
This one can do a lot of things for you, but for me the most important is its Jump to definition feature. That’s the one thing I was missing from Eclipse the most. Works for classes and functions across files in the project and even for builtin libraries and such.

SublimeRope
Another package that can do a lot of cool things, most importantly for me it will highlight unused variables and imports in my files so I can remove them.

MaxPane
Boy, have I missed this. Basically just maximizes/minimizes a pane, but I can’t live without it. Sadly still a bit buggy, but reinstalling helps.

GitGutter
Lets you see your differences in the file compared to the latest commit of the git repository. So useful to quickly detect changes.

Send to 3ds Max
A little plugin I wrote that supports color coding for MAXScript code, toggling comments and can send selected code or the complete file to 3ds Max for execution, so that you can use Sublime directly as your MAXScript editor. All this was only possible through the contributions of others which you can see on the repository’s website.

Duplicate Lines
Modified version of the builtin command to duplicate a line. Positions your mouse cursor correctly, just like e.g. in Eclipse.

Navigation History
Keeps record of your working locations and lets you jump back and forward, also in between files.

SublimeREPL
Lets you create different consoles directly in Sublime, e.g. a Python shell. Can send lines or blocks of code or the complete file to it for execution, great for testing out snippets or exploring an API.

Indent XML
Despite its name it can also format and indent JSON files. If you ever have been given a one-line 5000 word XML for debugging, this one is for you.

Trailing Spaces
Highlights unneccessary whitespace in code and automatically deletes it on save, if you want so.

Python PEP8 Autoformat
Does exactly what it says, formatting your code according to PEP8. I rarely use this (working on existing codebases that do not follow PEP8 will give you gigantic differences in git merges, which are a pain to review), but it can be a great speedup.

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.