James-Yu / LaTeX-Workshop

Boost LaTeX typesetting efficiency with preview, compile, autocomplete, colorize, and more.
MIT License
10.42k stars 519 forks source link

Option to pass verbatimEnvironments to latexindent #4273

Closed Tianmaru closed 1 month ago

Tianmaru commented 1 month ago

Please fill the following fields with a star (*) and provide as much related information as possible.

Pre-checks*

Please change the following [ ] to [x] for confirmation.

  • [x] The feature request has not been suggested in this repository.

The Missed*

Is your feature request related to a problem? Please provide a clear and concise description of what the problem is.

The Solution*

Please provide a solution you would like to have.

  • add a checkbox option to pass verbatim environments to latexindent
  • maybe this should be the default
  • at least add some information in the option's description how to achieve wanted behaviour
  • -y=verbatimEnvironments:comment:1

Anything Else?

Add any other context about the feature request below.

  • consider including comment environments to verbatimEnvironments
James-Yu commented 1 month ago

You can change latex-workshop.latexindent.args.

Tianmaru commented 1 month ago

Yes, that is what I did in the end - however, my point was, that it is not obvious from the description of the verbatimEnvironments option that the environments will not be passed to latexindent automatically.