- Go into VSCode
- Install typescript
npm i typescript
for local ORnpm i -g typescript
for global - Run either
node_modules/.bin/tsc --init
for local installation ortsc --init
for global - Open the generated file
tsconfig.json
and pressCTRL+F
- Make sure to tick the regex filter for search on the far right of the search input (third icon)
- Pase that regex
\s* \/\* .* \*\/
- Replace by "nothing"
Created
November 3, 2018 21:04
-
-
Save amoutonbrady/d80681f6d57721290b5079a4c950a772 to your computer and use it in GitHub Desktop.
Regex to remove tsc --init default config comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Just in case you need to remove
//
comments and\n\n
too:\s* \/\* .* \*\/|\s*//.+|\n\n