Menu

Auto indentation problem when pasting

Anonymous
2017-10-10
2017-10-10
  • Anonymous

    Anonymous - 2017-10-10

    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 ?

     
  • Anonymous

    Anonymous - 2017-10-10

    Or maybe a special shortcut to mean "Paste without reidentation" ?

     

Anonymous
Anonymous

Add attachments
Cancel