Repository navigation
Apply settings for TypescriptReact (TSX) the same way as for Typescript (TS) #172
Replies: 1 comment
|
You shouldn't need a separate copy for TSX. Out of the box, If you've added a custom pattern in "better-todo-tree.languages.customPatterns": [
{
"id": "typescript",
"languageIds": ["typescript", "typescriptreact"],
"extensions": [".ts", ".tsx"],
"singleLineComments": ["//"],
"multiLineComments": [{ "start": "/*", "middle": "*", "end": "*/" }]
}
]Swap in whatever delimiters you're actually using. One heads-up: a VS Code language block like |
Uh oh!
There was an error while loading. Please reload this page.
Is there an easy way to treat TSX the same way as TS other than trying to just clone the Typescript settings for TSX in a custom language setting? I am sure there will be a better way, but I simply didn't find it.
Thanks
All reactions