I know how to deal with the problem with the older version of LaTeXTools. But recently LaTeXTools has been updated, which turn out to deprive me of knowing what to do.
I use Windows+MikTex, by the way.
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It only takes a minute to sign up.Sign up to join this community
In the more recent versions of LaTeXTools, enabling this has become less hackish. There are two methods that can be used to set flags for
%!TEX option = --shell-escape
builder_settings section of LaTeXTools setting file, add a key "options" like this:
"options": [ "--shell-escape" ],
See answer here.
"tap Preferences->package settings->LaTeXTools->Reconfigure LaTeXTools and migrate settings in order to create the LaTeXTools.sublime-settings file."