Skip to content

Instantly share code, notes, and snippets.

@MohammadRaziei
Created March 3, 2022 03:14
Show Gist options
  • Select an option

  • Save MohammadRaziei/c9e50f7a89546355c1b2da804e99c032 to your computer and use it in GitHub Desktop.

Select an option

Save MohammadRaziei/c9e50f7a89546355c1b2da804e99c032 to your computer and use it in GitHub Desktop.
%SCRIPT
// needs TeXstudio v2.11.0 or newer
filename = app.getCurrentFileName()
workingDirectory = filename.substring(0, filename.lastIndexOf("/"))
system("explorer .", workingDirectory) //for windows - tested
//system("xdg-open .", workingDirectory) //for linux - tested
//system("open .", workingDirectory) //for mac - untested
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment