• Stars
    star
    505
  • Rank 87,373 (Top 2 %)
  • Language
    JavaScript
  • License
    MIT License
  • Created almost 8 years ago
  • Updated 6 months ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

a vscode extension to highlighting todos, fixmes, and any annotations...

VSCODE-TODO-HIGHLIGHT

License: MIT Build Status Version Installs Ratings

Highlight TODO, FIXME and other annotations within your code.

Sometimes you forget to review the TODOs you've added while coding before you publish the code to production. So I've been wanting an extension for a long time that highlights them and reminds me that there are notes or things not done yet.

Hope this extension helps you as well.

NOTICE

Many report that the List highlighted annotations command is not working, make sure you have the file types included via todohighlight.include.

Preview

  • with material night color theme:

  • with material night eighties color theme:

Config

TODO:,FIXME: are built-in keywords. You can override the look by customizing the setting.

To customize the keywords and other stuff, command + , (Windows / Linux: File -> Preferences -> User Settings) open the vscode file settings.json.

type default description
todohighlight.isEnable boolean true Toggle the highlight, default is true.
todohighlight.isCaseSensitive boolean true Whether the keywords are case sensitive or not.
todohighlight.keywords array N/A An array of keywords that will be hilighted. You can also specify the style for each keywords here. See example below for more infomation.
todohighlight.keywordsPattern string N/A Specify keywords via RegExp instead of todohighlight.keywords one by one. NOTE that if this presents, todohighlight.keywords will be ignored. And REMEMBER to escapse the back slash if there's any in your regexp (using \ instead of signle back slash).
todohighlight.defaultStyle object N/A Specify the default style for custom keywords, if not specified, build in default style will be applied. See all available properties on VSCode doc DecorationRenderOptions section
todohighlight.include array [
"**/*.js",
"**/*.jsx",
"**/*.ts",
"**/*.tsx",
"**/*.html",
"**/*.php",
"**/*.css",
"**/*.scss"
]
Glob patterns that defines the files to search for. Only include files you need, DO NOT USE {**/*.*} for both permormance and avoiding binary files reason.
For backwards compatability, a string combine all the patterns is also valid "{**/*.js,**/*.jsx,**/*.ts,**/*.tsx,**/*.html,**/*.php,**/*.css,**/*.scss}"
todohighlight.exclude array [
"**/node_modules/**",
"**/dist/**",
"**/bower_components/**",
"**/build/**",
"**/.vscode/**",
"**/.github/**",
"**/_output/**",
"**/*.min.*",
"**/*.map"
]
Glob pattern that defines files and folders to exclude while listing annotations.
For backwards compatability, a string combine all the patterns is also valid "{**/node_modules/**,**/bower_components/**,**/dist/**,**/build/**,**/.vscode/**,**/_output/**,**/*.min.*,**/*.map}"
todohighlight.maxFilesForSearch number 5120 Max files for searching, mostly you don't need to configure this.
todohighlight.toggleURI boolean false If the file path within the output channel not clickable, set this to true to toggle the path patten between <path>#<line> and <path>:<line>:<column>.

an example of customizing configuration:

{
    "todohighlight.isEnable": true,
    "todohighlight.isCaseSensitive": true,
    "todohighlight.keywords": [
        "DEBUG:",
        "REVIEW:",
        {
            "text": "NOTE:",
            "color": "#ff0000",
            "backgroundColor": "yellow",
            "overviewRulerColor": "grey"
        },
        {
            "text": "HACK:",
            "color": "#000",
            "isWholeLine": false,
        },
        {
            "text": "TODO:",
            "color": "red",
            "border": "1px solid red",
            "borderRadius": "2px", //NOTE: using borderRadius along with `border` or you will see nothing change
            "backgroundColor": "rgba(0,0,0,.2)",
            //other styling properties goes here ... 
        }
    ],
    "todohighlight.keywordsPattern": "TODO:|FIXME:|\\(([^)]+)\\)", //highlight `TODO:`,`FIXME:` or content between parentheses
    "todohighlight.defaultStyle": {
        "color": "red",
        "backgroundColor": "#ffab00",
        "overviewRulerColor": "#ffab00",
        "cursor": "pointer",
        "border": "1px solid #eee",
        "borderRadius": "2px",
        "isWholeLine": true,
        //other styling properties goes here ... 
    },
    "todohighlight.include": [
        "**/*.js",
        "**/*.jsx",
        "**/*.ts",
        "**/*.tsx",
        "**/*.html",
        "**/*.php",
        "**/*.css",
        "**/*.scss"
    ],
    "todohighlight.exclude": [
        "**/node_modules/**",
        "**/bower_components/**",
        "**/dist/**",
        "**/build/**",
        "**/.vscode/**",
        "**/.github/**",
        "**/_output/**",
        "**/*.min.*",
        "**/*.map",
        "**/.next/**"
    ],
    "todohighlight.maxFilesForSearch": 5120,
    "todohighlight.toggleURI": false
}

Commands

This extension contributes the following commands to the Command palette.

  • Toggle highlight : turn on/off the highlight
  • List highlighted annotations : list annotations and reveal from corresponding file

Known issue

The clickable file pattern within the output channel differs from OS platform(<path>#<line> for Mac/Windows and <path>:<line>:<column> for Linux, for details see this issue ).

Basically the extension auto detects the OS platform.

If you find that the file path is not clickable, set todohighlight.toggleURI to true to toggle the file pattern.

More Repositories

1

t-rex-runner

the t-rex runner game extracted from chromium
JavaScript
1,866
star
2

HTML5_Audio_Visualizer

An audio spectrum visualizer built with HTML5 Audio API
HTML
1,138
star
3

HiChat

A chat application built with Node.js and Websocket
JavaScript
740
star
4

SlipHover

apply direction aware animation to images caption
JavaScript
510
star
5

3D_Audio_Spectrum_VIsualizer

a 3d audio spectrum viauslizer built with three.js
JavaScript
172
star
6

wayou.github.io

SCSS
146
star
7

selected

🎵 A collection of songs that I love, also shows how to sync lyric with HTML5 audio tag
JavaScript
144
star
8

MeowmeowPlayer

An HTML5 Music Player with Spectrum Visualizer
JavaScript
96
star
9

hexo-theme-material

a theme of hexo using the material design bootstrap
CSS
95
star
10

audio-visualizer-with-controls

html5 audio visualizer with audio play controls
JavaScript
85
star
11

anonymous-animals

anonymous animal icons used for anonymous users extracted from Google Docs
HTML
51
star
12

hexo-theme-gstyle

a hexo theme with google style
JavaScript
46
star
13

audio-recorder

js audio recorder
HTML
37
star
14

bazel-ts-example

Example demonstrates building TypeScript & React with Bazel
Starlark
26
star
15

hexo-image-caption

add caption for images within posts
JavaScript
22
star
16

like-fx-miniapp

微信小程序直播点赞效果
JavaScript
19
star
17

WebViewExample

work as a webview testing environment for frontend developers
Swift
18
star
18

splash-screen-example

an example of adding splash screen to web apps
JavaScript
14
star
19

turn-issues-to-posts-action

Github action which turns issues into markdown files
9
star
20

ssr-demo

ssr demo using puppeteer
JavaScript
9
star
21

siri-wave-miniapp

微信小程序 Siri 波形组件
JavaScript
9
star
22

format-copied-curl

format curl command
TypeScript
8
star
23

faker-cheatsheet

a collection of fake data generators
5
star
24

bazel-js-example

Examples demonstrate building JavaScript with Bazel
Python
5
star
25

hexo-theme-polymer

a mobile friendly hexo theme built with google polymer
JavaScript
5
star
26

node-crud

Node.js + Koa + MySQL CRUD example
JavaScript
5
star
27

101-interview-questions

101个面试问题,译自http://www.employmentking.co.uk/interviews/101-interview-questions/
4
star
28

mail-template

responsive mail template
HTML
4
star
29

http-transfer-encoding-chunked

Node.js example demonstrate the http chunked transfer encoding
JavaScript
4
star
30

baidu-gravity

adapted from google gravity
JavaScript
4
star
31

task-runner

TypeScript
3
star
32

pkgrc

fetch npmrc file wich contains mirror settings
JavaScript
3
star
33

big-web-quiz

questions from the big web quiz session of the Google I/O 2017
3
star
34

hexo-filter-pathfix

using absolute path for assets in posts
JavaScript
3
star
35

nestjs-load-config-based-on-env

nestjs load script configuration based on node env
TypeScript
2
star
36

materialize-example

materialize framework implementation for tieba mis
JavaScript
2
star
37

lame

lame mirror https://sourceforge.net/projects/lame/
C
2
star
38

koa-chunked-response

chunked response in koa
JavaScript
2
star
39

webpack-sass-import-issue

imports not processed by webpack in sass issue
JavaScript
2
star
40

d3-playaround

JavaScript
2
star
41

threejs-intro

JavaScript
1
star
42

xml-handling

Handling XML request&response in NestJS
TypeScript
1
star
43

Wallist

A Simple TODO managment application using HTML5 localStorage
JavaScript
1
star
44

mkreadme

generate a README.md file
JavaScript
1
star
45

phaser-game

JavaScript
1
star
46

pipixia

retrive video url for pipixia
HTML
1
star
47

css-module

minimal setup for css module demonstration
JavaScript
1
star
48

print-chunks-plugin

webpack plugin to print chunks for bundle
JavaScript
1
star
49

intersection-observer-api

intersection observe api demo
TypeScript
1
star
50

Responsive_Web_Design_Example

An example page of responsive web design
CSS
1
star
51

threejs-samples

examples written when i learn threejs
JavaScript
1
star
52

hbmm

manage and switch homebrew mirrors. homebrew 源镜像切换与管理
JavaScript
1
star
53

zch-slots

JavaScript
1
star
54

nest-global-filter-injection-issue

TypeScript
1
star
55

test

http://wayou.github.io/test/
JavaScript
1
star
56

test-turn-issues-to-posts-action

1
star
57

recoil-nest-select

the right way to setup nested selects with Recoil
TypeScript
1
star
58

emg

a simple, enhanced react image component with loading spinner, fallback support and other features
JavaScript
1
star
59

num-input

微信小程序自定义组件带加减的数字输入框
TypeScript
1
star
60

angular-commit-complete

fish complete for angular commit message
Shell
1
star
61

github-activity-divider

add divider between new loaded content and old ones in github activity page
JavaScript
1
star
62

css-fixed-background-effect

http://codyhouse.co/demo/fixed-background-effect/index.html
CSS
1
star