[TxMt] Re: Javadoc snippet question
Luke Daley
ld at ldaley.com
Fri Apr 24 00:37:03 UTC 2009
On 24/04/2009, at 3:03 AM, Thomas Krajacic wrote:
> I recently opened one of my old Java files and remembered I used some
> snippet to create a method and automatically create a header comment
> and javadoc comment like this:
>
> /**
> * doSteps
> *
> * calculate n steps each lasting 0.005s
> *
> * @param steps number of steps each of which accounts for
> 0.005s
> */
> public void doSteps(int steps) {
> //do smth...;
> }
>
> I can't find this anywhere anymore. Can anyone help me out here? The
> snippet automatically jumped to the return type, then the function
> name (also inserting it at the top in the comment), then to the @param
> thingy to enter text and finally to the function itself to write some
> code. At least that's how I think it went. Might be that I idealize a
> bit from bad memory :P
>
> Does someone know of a snippet like this? I already searched the web
> but couldn't find something. (Yeah I also searched the Javadoc
> bundle... but it isn't there :( )
> Maybe I was just dreaming of this snippet :(
Hi Thomas,
I took this snippet out. I tried using it but found that it broke down
far too often. By that I mean that I wanted to do something that
didn't quite fit in with how the snippet worked. My solution to that
was to provide smaller snippets that could be combined for more
flexibility.
More information about the textmate
mailing list