2

Is there any shortcut (or something else) that beautify the code, like ctrl+shift+f does in Eclipse or ctrl+k+d in Visual Studio?

Martin Scharrer
  • 262,582
  • 2
    Well, shortcuts are features of specific tools. As LaTeX is a compiler not an editor, it does not has such a feature itself. It depends on your used editor (e.g. TeXWorks, etc.) or you can use an external tools. However, as (La)TeX is a "programming" language which allows to dynamically change syntax elements it is difficult to program such a tool. Some constructs, like verbatim text make it basically impossible. – Martin Scharrer Jan 17 '19 at 08:24
  • 2
    I think the following answers your question https://tex.stackexchange.com/q/26102/2975, making it a duplicate. In short: I recommend latexindent, which can be integrated as external tool by advanced editors/develop environments like Eclipse. – Martin Scharrer Jan 17 '19 at 08:25
  • 1
    Why don't you just use eclipse for writing and compiling? Seems like the mist natural choice for you. – Johannes_B Jan 17 '19 at 08:33
  • @Johannes_B: I think the mentioned Eclipse shortcut only works for C, C++, Java etc. I don't think Eclipse has a LaTeX formatter. – Martin Scharrer Jan 17 '19 at 09:32

0 Answers0