Install the Code Runner plugin for VSCode
Then use pnpm(recommend), npm, or yarn to install the dependencies.
pnpm i
Open ts file and click on the run button in the top right corner of the window.
If the changes made to .prettierrc are not taking effect, please try restarting VSCode.