is there a way to make notepad++ behave like eclipse with multi-line comments? It would be great if notepad automatically inserts " * " every time I make a new line in a /* */ comment-section.

To be clearify my question:

When if have this code:

 * Some descriptive comment [cursor]

And I press [Enter] it would be nice to see notepad automatically do the following:

 * Some descriptive comment
 * [cursor]

I hope this is understandable.

  • What programming language?
    – DavidPostill
    Sep 9, 2015 at 9:12
  • Only Javascript and PHP. Sep 9, 2015 at 9:15
  • Hmm. It already does exactly what you want for .js. and .php files.
    – DavidPostill
    Sep 9, 2015 at 9:32
  • Actually not in my notepad. Which option enables/disables it? Maybe I disabled it by accident. Sep 9, 2015 at 10:03
  • No idea. Do you have the correct lange set for your file? "Language" > "Javascript" or "PHP"?
    – DavidPostill
    Sep 9, 2015 at 10:07

1 Answer 1


I am not familliar with the ability to do so automatically on Notepad++, so you may try starting with writing your multi line comment, then select it and use the shortcut CTRL+Shift+Q to encapsulate it in a comment block.

  • No need to do this. What the OP wants is built-in and works exactly how he would like it to.
    – DavidPostill
    Sep 9, 2015 at 9:33
  • Not quite what I was expecting, as the formation is not what I am supposed to use. But thanks for the quick answer. Sep 9, 2015 at 10:05

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.