0

Can someone explain the pattern at todo optional tab in intellij enter image description here

for example :if i type "todo" then I want the "todo" tag should output:

//todo this is your code here  

what should I do?

Matt S
  • 14,976
  • 6
  • 57
  • 76

1 Answers1

5

The window in your screenshot just controls the icons shown on the left gutter.

What you want is a live template:

  • open settings > editor > live templates
  • choose a category, for example other
  • press on the "+" on the right, add template
  • abbreviation: "todo", description: anything, template text: "// todo this is your code here"
  • choose the applicable contexts, for example Java.
  • press ok

Then, in a java code, type todo + tab.


intellij settings

Derlin
  • 9,572
  • 2
  • 32
  • 53