The readability of LaTeX source code can be significantly reduced when the document requires the use of frequent and sometimes lengthy commands. Some commands contain information necessary to read the content of the text, such as the command \emph{important}. Other commands are completely redundant. A good example is the \index command used in indexed documents, which repeats information already present in the document - thereby contributing nothing to the readability. Rather, the opposite effect is achieved.
A function to hide these commands is proposed as follows
- The user specifies the format of the command to be hidden in the editor. Commands can be complex and include several arguments. It might therefore be beneficial to specify a regular expression for the command which is to be hidden.
- The hidden command is replaced by a small, but visible icon in the editor (for example an achor symbol) as long as the hiding function is on. The replacement of the command with the symbol is therefore only temporary in the editor, no permanent replacement shall take place.
- The (anchor) symbols should also be fashioned with a tooltip revealing the hidden command.
- There should be an option to make the hiding function global, such that it applies to other documents already opened or that are opened later in the same session.
- The hiding function should be reset when restarting the program.
Hopefully this feature request is clear. If implemented it would make TeXstudio stand out against other editor, which to my knowledge do not have this feature. It would also significantly improve the workflow for documents which can become cluttered by commands.
The readability of LaTeX source code can be significantly reduced when the document requires the use of frequent and sometimes lengthy commands. Some commands contain information necessary to read the content of the text, such as the command
\emph{important}. Other commands are completely redundant. A good example is the\indexcommand used in indexed documents, which repeats information already present in the document - thereby contributing nothing to the readability. Rather, the opposite effect is achieved.A function to hide these commands is proposed as follows
Hopefully this feature request is clear. If implemented it would make TeXstudio stand out against other editor, which to my knowledge do not have this feature. It would also significantly improve the workflow for documents which can become cluttered by commands.