Code Style
These settings can be found in formatter, triggered by pressing Ctrl + Alt + L, or the behaviour of the editor.
and for LaTeX and BibTeX, respectively. These settings will change the behaviour of theCommon code style settings for both LaTeX and BibTeX
These settings are available for both LaTeX and BibTeX.
Indent size
Change the number of spaces to indent with in the Tabs and Indents tab.
Option to hard wrap LaTeX and BibTeX files
These options are in the Wrapping tab.
Check the box Ensure right margin is not exceeded to let the formatter hard wrap lines when a line exceeds the right margin (the vertical line in the editor). Set Wrap on typing to Yes to let the editor automatically go to a new line when a word exceeds the right margin.
LaTeX specific code style settings
These settings are only available for LaTeX.
Line comment at first column
This setting is in the Code Generation tab.
Press Ctrl + / to turn a line into a comment. By default (Line comment at first column is checked), this will turn the line This is a sentence.
into the comment
Uncheck Line comment at first column and check Add space to comment start to change this behaviour and obtain the comment
Note that this only changes the behaviour when generating a comment with Ctrl + /, and that this setting has no influence on the formatting of comments.
Specify number of blank lines before sectioning commands
These settings are in the Blank Lines tab.
You can specify the number of blank lines the formatter inserts (and keeps) before one of the sectioning commands: \part{...}
, \chapter{...}
, \section{...}
, \subsection{...}
, \subsubsection{...}
, \paragraph{...}
, and \subparagraph{...}
.
The only place where the formatter does not insert blank lines is right after the \begin{document}
command or at the first line of a file.
Indent text in sections
When enabled, text inside sections, subsections, etc. will be indented. As an example,
will be reformatted as
Indent document environment
When disabled, all the text between \begin{document}
and \end{document}
will not be indented.