1

Is there any shortcut to comment out JavaScript code in Notes? I know the shortcut for Xpage is ctrl+shift+c

Per Henrik Lausten
  • 21,331
  • 3
  • 29
  • 76
Kallen_Du
  • 41
  • 6

2 Answers2

1

if you use vscode mark all the lines you need to comment and then click

Ctrl + /

or add

//

to the beginning of every line.

Chukwuemeka Maduekwe
  • 6,687
  • 5
  • 44
  • 67
  • 2
    You cannot use VS Code with Notes (unless you use AppDev Pack and node.js, but since OP mentions Xpages I doubt that is what he is using). For traditional Notes development you need to use Domino Designer. – Karl-Henry Martinsson Dec 07 '20 at 22:28
1

I do not know your version of Domino Designer, so I can only provide a genearal answer to JavaScript comments.

If you only have one line you want to comment, just use // at the beginning of that line.

If you want to comment multiple lines, start the comment with /* and end it with */.

Maybe you can find such a shortcut under Preferences --> General --> Keys (if your Domino Designer has that entry).

Christoph S.
  • 585
  • 3
  • 16