question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Option to disable highlighting of TODO comments

See original GitHub issue

When I put a TODO in a comment in a Java file, the Java extension highlights it with a squiggly underline. As I have a dedicated todo-highlighter extension which suits my needs far better, I’d like to disable the underlining of these comments. I’ve looked, but I can’t find anything in the settings to disable this. Could a setting for it be added?

Environment
  • Operating System: Windows 10
  • JDK version: 11.0.12
  • Visual Studio Code version: 1.60.2
  • Java extension version: 0.82.0
Steps To Reproduce
  1. Add a comment in a Java file, such as // TODO: Something or // FIXME: Something else
  2. Observe that a blue underline appears on the comment.
Current Result

See above

Expected Result

See above

Additional Informations

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:7 (6 by maintainers)

github_iconTop GitHub Comments

3reactions
rgrunbercommented, Oct 4, 2021

The task tags show an information marker (blue squiggles) so that they’re visible in the problems view, as well as from the scrollbar of an opened file. The nice part is being able to view a list of all “TODO” items in a project.

Right, but the point of this issue is that some users have dedicated TODO extensions like Todo Tree, so they would like to disable the task tag highlighting from this extension (in order to avoid the clutter of duplicate TODO highlights). And since task tags are diagnostics just like errors and warnings, I was thinking maybe eclipse/eclipse.jdt.ls#1765 would provide a code action to disable the task tags.

Agreed. If we can figure out that the property accepts a set of values (as opposed to enabled/disabled), then we can certainly define our “Ignore this option” code action to set it empty.

0reactions
rgrunbercommented, Oct 13, 2021

Given that there is a workaround, and that we’ll make progress on this in https://github.com/eclipse/eclipse.jdt.ls/pull/1765 , I’ll mark this as a duplicate.

Read more comments on GitHub >

github_iconTop Results From Across the Web

highlight - Turn off syntax hilighting for TODO items
Another option: Since TODOs are often in comments, if you want the TODO to end up having the same highlighting as regular comments, ......
Read more >
vscode-todo-highlight - Visual Studio Marketplace
Highlight TODO , FIXME and other annotations within your code. ... You can override the look by customizing the setting.
Read more >
TODO comments | IntelliJ IDEA Documentation - JetBrains
IntelliJ IDEA lets you add special types of comments that are highlighted in the editor, indexed, and listed in the TODO tool window....
Read more >
How do I disable "TODO" warnings in pylint? - Stack Overflow
In pylint.cfg, I can disable checker W0511, which is the checker that complains about "TODO" and similar terms in comments.
Read more >
Option to disable built in keywords · Issue #83 · wayou/vscode ...
Having no way to remove the built in highlighting for TODO: and FIXME: is problematic for me. ... akbyrd opened this issue on...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found