What is the shortcut to add the method?

I'm looking for a simple shortcut to adding methods to the structure. It is troublesome for me to write receiver.

It is not an interface implementation shortcut.

 

 

 

 
4 comments
Comment actions Permalink

Ctrl+I on the structure will suggest you to generate methods of particular interface.

You can find any shortcut for any action using Search everywhere (Shift+Shift).

0
Comment actions Permalink

Thank you for your reply.
But I want to add a non-interface method easily.

I couldn't find it.

 

 

 

 
0
Comment actions Permalink

You can use the "meth" Live Template, start typing meth and then press Tab/Enter to get the completion to do the rest for you.

 

0
Comment actions Permalink

Oh! It became very convenient.
Thanks, Alexander and Florin.

 

 

 

 
0

Please sign in to leave a comment.