[Tex/LaTex] Disable automatic indentation/spacing of comment symbols in TeXstudio

texstudio

Is there a way to disable TeXstudio's comment symbol formatting? Every time I enter a % it automatically adds an extra space even if I backspace and try again (I have to use my mouse and manually click the space to remove the whitespace). It also automatically pulls the % forward every time I tab. This behavior is insufferably annoying. I can't figure out how to disable it. Is there a way?

Best Answer

Go to Macros -> Edit Macros and delete the two entries:

  • Key replacement: % before word
  • Key replacement: % after word
Related Question