Adding scaladocs to a Scala function in Sublime Text 2

Hire me to supercharge your Hadoop and Spark projects

I help businesses improve their return on investment from big data projects. I do everything from software architecture to staff training. Learn More

I’m trying to comment my code more often. Specifically, I’m trying to add useful comments more often. In many cases this requires documenting a function using a scaladoc comment, but I can never remember the syntax, so I created a sublime-text-2 snippet.

Here it is on github

To install: Tools -> Create Snippet -> [paste in the gist] -> save as something.sublime-snippet.

Now:

just type ‘docs’ and press tab. Hey presto! Instant documentation.

Enjoy. (I’m sure this already exists, but creating a snippet was a learning exercise too!)

Matthew Rathbone's Picture

Matthew Rathbone

Consultant Big Data Infrastructure Engineer at Rathbone Labs. British. Data Nerd. Lucky husband and father.

Hire me to supercharge your Hadoop and Spark projects

I help businesses improve their return on investment from big data projects. I do everything from software architecture to staff training. Learn More

Join the discussion