I would like to comment multiple lines in TeXworks (installed as part of MiKTeX) and I need to know the keyboard trick for commenting/uncommenting at once.


1 Answer 1


MiKTeX installs the TeXworks editor as standard. This has the ability to add/remove comments from multiple line (placing % at the start) using the shortcuts Ctrl+Shift+] (insert comment)/Ctrl+Shift+[ (remove comment). The key binds can be customised (particularly useful if your keyboard makes these combinations inconvenient).


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.