Azam Aftab
Azam Aftab

Reputation: 21

how to comment reactjs mark up code in visual code?

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?

Upvotes: 1

Views: 141

Answers (1)

Azam Aftab
Azam Aftab

Reputation: 21

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

Upvotes: 1

Related Questions