1

I'm a longtime user of TeXnicCenter. I like the fact that there's a keyboard shortcut I can use to comment or uncomment large blocks of text (Ctrl-Q and Ctrl-W, respectively). Are there other LaTeX editors for Windows 7 that also have this feature?

Ursula
  • 111
  • 1
  • 2
  • 5
    emacs, of course! – David Carlisle Mar 02 '15 at 20:12
  • @DavidCarlisle: Quick, answer, before the vim - mafia comes in ;-) –  Mar 02 '15 at 20:18
  • 3
    WinEdt has that feature. – Bernard Mar 02 '15 at 20:25
  • As already noted, several editors have this ability. Beyond that, what are you after as an answer here? We could logically have one per editor, which seems rather 'weak', or one (CW?) answer, or ... – Joseph Wright Mar 02 '15 at 20:28
  • 2
    Welcome to TeX.SX! You might want to take a look at LaTeX Editors/IDEs. – Adam Liter Mar 02 '15 at 20:37
  • I want a list which I can cross-reference with the Wikipedia chart of LaTeX editors. It would be nice to know whether a particular editor is recommended aside from its shortcuts, too (but I'm afraid I already joined the vim mafia). – Ursula Mar 02 '15 at 20:39
  • Texmaker -- highlight the appropriate lines. cntl-T to comment out and cntl-W to uncomment highlighted lines. Caution: this action prepends % or trims them one at a time, so be careful with already commented code. – R. Schumacher Mar 02 '15 at 20:56
  • 1
    Emacs uses the same shortcut to comment and uncomment, so you don't even need to remember two of them. – giordano Mar 02 '15 at 21:03
  • Notepad++ has Ctrl+k for commenting and Shift+Ctrl+k to uncomment. – Martin Heller Mar 02 '15 at 21:27
  • vim together with https://github.com/tpope/vim-commentary – MaxNoe Mar 02 '15 at 21:55
  • 2
    My concern here is that one could ask similar open-ended questions about almost any feature of any editor, with the result that the nature of a good answer is very hard to determine. Could you perhaps details what it is that motivates the question: as you seem to be happy with TeXnicCenter I'm not seeing it! – Joseph Wright Mar 03 '15 at 08:15
  • I would mark @R.Schumacher's comment as "best answer" if it were an answer: it told me that TeXMaker handles comments in the way I'm used to, and led me to download TeXMaker and try it out. – Ursula Mar 03 '15 at 14:25

3 Answers3

4

In Winedt use Ctrl+Shift+Alt+ to comment a line and to uncomment a line use Ctrl+Shift+Alt+.

Werner
  • 603,163
  • 1
    Four-key shortcuts?!? Does anyone else find that excessive? I block comment/ uncomment code hundreds of times a day when writing code. Is that really unusual behaviour? A four-key "shortcut" suggests it's not expected to be used very often. – SSilk Mar 26 '17 at 19:45
  • ToggleComment, a WinEdt macro, allows you to (un)comment blocks using Ctrl + Q – Arturo Moncada-Torres Mar 19 '20 at 15:00
1

All of them. Unless you count Notepad. Seriously, I dare you to find a single LaTeX editor that does not. I use TexWorks. The shortcut there is a bit annoying since it requires 3 fingers: ctrl+shift+] and ctrl+shift+[

Mark
  • 1,393
0

Sublime Text does that with Ctrl-/. It is not free though.

Keelan
  • 5,425