Línea TODO de inserción rápida
Frecuentes
Visto 3,823 equipos
3
Is it possible to setup IDEA to be able to quick insert // TODO
lines? For example keybinding or code completion pattern? I didn't find anything.
3 Respuestas
9
Check out Live Templates feature of IntellyJ. I hope it'll satisfy your needs.
Aquí hay un enlace a tutorial de vídeo on how to create one.
contestado el 28 de mayo de 14 a las 14:05
8
Since 1.3 Android Studio ships with a set of live templates. One of which does exactly what you want.
In order to activate it, simply type todo
followed by a tab. Also works with fixme
y stopship
.
Respondido el 01 de diciembre de 15 a las 16:12
Yeah, doing it for a year now - Dmitri Ryadnenko
as of v2020.3, for me it worked with typing st + pressing tab - akabelle
2
Live Template fixed my problem. I wanted to add a custom todo comment in intellij with my initials and date so i did this:
// TODO: $date$ [name] $todo$
Respondido 18 Oct 22, 09:10
No es la respuesta que estás buscando? Examinar otras preguntas etiquetadas intellij-idea android-studio or haz tu propia pregunta.
Have you tried to use live templates for this? - Alex
No I haven't. Reading about it now. Thank you for the tip. - Dmitry Ryadnenko
@SimY4 ahhh, it's perfect, thank you again. Create an answer if you wish. I'll accept it and vote up. - Dmitry Ryadnenko