Hello,
TXS has an autoindentation feature for environments which I find nice as it gives a more readable LaTeX code.
However, when it is active, this feature tends to mess things up when I am pasting code from elsewhere. This is espacially a problem when I happen to paste verbatim Python code into an listings environment (it is a custom env with name lstpython), or even whole listings environments from a document to another : TXS reindents it in a undesired fashion.
I can deactivate autoindent entirely but as I said it is generally a nice feature. Is there a way to shut it off when pasting code, or to shut it off for the contents of some precise environments ?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
View and moderate all "TXS - Open Discussion" comments posted by this user
Mark all as spam, and block user from posting to "Discussion"
Hello,
TXS has an autoindentation feature for environments which I find nice as it gives a more readable LaTeX code.
However, when it is active, this feature tends to mess things up when I am pasting code from elsewhere. This is espacially a problem when I happen to paste verbatim Python code into an listings environment (it is a custom env with name lstpython), or even whole listings environments from a document to another : TXS reindents it in a undesired fashion.
I can deactivate autoindent entirely but as I said it is generally a nice feature. Is there a way to shut it off when pasting code, or to shut it off for the contents of some precise environments ?
View and moderate all "TXS - Open Discussion" comments posted by this user
Mark all as spam, and block user from posting to "Discussion"
Or maybe a special shortcut to mean "Paste without reidentation" ?