vimneovimtodotelescope.nvim

How do I find TODO comments in Neo/vim?


In my codebase I often leave comments in the form of // TODO: thing to get done. I need a way to find them across all my files and view them in one place. I am open to plugins but would equally want to know what can be done in vim.


Solution

  • If you're using nvim, then one plugin to try is Telescope. From there you can use :Telescope live_grep and simply searching TODO will yield all results of TODO comments across your codebase.