[TxMt] Re: Javadoc snippet question
Thomas Krajacic
tkrajacic at inode.at
Fri Apr 24 07:53:08 UTC 2009
Thanks Luke!
At least now I know that my memory didn't play tricks on me! :)
Just one thought:
It's quite tedious to use the smaller snippets if you write lots of
methods with comments over and over again, even when using your
smaller snippets.
Would it be possible to say create one bigger snippet, that uses the
smaller ones in a predefined order? So that I would just have to use
one snippet,
that would enter lots of the smaller ones for me, since they are
always the same order in my case?
Anyway I think that your smaller snippets are well done and a good
idea for a clean organisation but I think they need some bigger combos
to use them.
Thx for your work,
Thomas Krajacic
On 24 Apr 2009, at 02:37, Luke Daley wrote:
>
> 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.
>
>
>
> _______________________________________________
> textmate mailing list
> textmate at lists.macromates.com
> http://lists.macromates.com/listinfo/textmate
More information about the textmate
mailing list