Is there any way to comment react js
code especially mark up on VS
code. When i use command Ctrl+k,c
it uses //
to commit the react markup. can you please suggest?
Asked
Active
Viewed 118 times
1

Feras Al Sous
- 1,073
- 1
- 12
- 23

Azam Aftab
- 21
- 2
-
2Possible duplicate of [How to comment jsx code out in .js files in VSCode?](https://stackoverflow.com/questions/38483225/how-to-comment-jsx-code-out-in-js-files-in-vscode) – Adi Fatol Jun 27 '19 at 10:47
1 Answers
1
Go to File => Preferences => settings
Find edit in setting json
file and use this command
"files.associations": {
"*.js": "typescriptreact"
}
Now you can use Ctrl+k,c
command to comment markup of react js

Feras Al Sous
- 1,073
- 1
- 12
- 23

Azam Aftab
- 21
- 2