What is the shortcut to add the method? nikai Created August 08, 2019 09:58 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.
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).
Thank you for your reply.
But I want to add a non-interface method easily.
I couldn't find it.
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.
Oh! It became very convenient.
Thanks, Alexander and Florin.