- Go into VSCode
- Install typescript
npm i typescriptfor local ORnpm i -g typescriptfor global - Run either
node_modules/.bin/tsc --initfor local installation ortsc --initfor global - Open the generated file
tsconfig.jsonand 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
Just in case you need to remove // comments and \n\n too: \s* \/\* .* \*\/|\s*//.+|\n\n
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Thanks!