Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>JS Pragmas HighlightNew to Visual Studio Code? Get it now.
JS Pragmas Highlight

JS Pragmas Highlight

Egor Lem

|
45 installs
| (0) | Free
Adds semantic tokens for pragmas from JavaScript, TypeScript, ESLint, Next JS
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

JS Directives Highlight

The plugin adds semantic tokens for pragmas from JavaScript, TypeScript, ESLint, Next JS

js prgama

Pragmas are declared as string literals

ECMAScript

pragma token
'use asm' string.quoted.pragma.asm
'use strict' string.quoted.pragma.srtict

NextJS

pragma token
'use client' string.quoted.pragma.client
'use server' string.quoted.pragma.server

Pragmas are declared as comment

TypeScript

pragma token
@ts-expect-error comment.pragma.ts.error
@ts-check comment.pragma.ts.check
@ts-nocheck comment.pragma.ts.nocheck
@ts-ignore comment.pragma.ts.ignore

ESLint

pragma token
eslint-disable comment.pragma.eslint.disable
eslint-disable-next-line comment.pragma.eslint.nextline
eslint-disable-line comment.pragma.eslint.nextline
eslint-enable comment.pragma.eslint.enable
  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft