texstudio-org / texstudio

TeXstudio is a fully featured LaTeX editor. Our goal is to make writing LaTeX documents as easy and comfortable as possible.
http://www.texstudio.org/
GNU General Public License v3.0
2.78k stars 344 forks source link

Enhancement: various default compilations, depending on file extension #329

Open mb4e opened 6 years ago

mb4e commented 6 years ago

Hello, I'm using texstudio with tex files (luatex compilation) but also with asy files (asymptote compilation). I'm using luatex as default compilation, but it would be convenient that default compilation automatically switch to asymptote if an asy extension is detected.

Thanks for your work.

sunderme commented 6 years ago

you could make use of % !TeX program = pdflatex

mb4e commented 6 years ago

Such file directive is overwriting texstudio default compilation ? And can'i pass some options, something like % !TeX program = asy -f pdf ?

sunderme commented 6 years ago

take at look in the manual ...

mb4e commented 6 years ago

% !TeX program = asy is not working and it looks like such magic comments do not work with asy files.