Any example on implementing comments in main editor modes JS, HTML, CSS ?

For example, if I am using Html mode, CTRL+/ will cause
<!-- this is a comment in html -->
or if I am using Css or JS modes,
/* this is a comment in CSS or JS */
or if I am using JS mode
// this is a comment in JS

It’s not quite clear what you’re asking, but the functionality you describe is implemented in the comment addon.

What I asked is I gave one example of working with Visual Studio Code [pressing CTRL+Slash will generate the appropriate comment for the current line./css/ or `. The comment addon is exactly the information I needed, thanks for answering Marijn. Now I just have to figure out how to use Addons with React-codemirror2