title: Why doesn't sublime automatically detect this matlab custom sublime-build with a selector?
body: <p>This question is very similar to <a href="https://stackoverflow.com/questions/26370024/why-doesnt-sublime-automatically-detect-this-custom-sublime-build-with-a-select">this one</a>.</p>
  <p>I have set up this matlab custom build in Sublime Text 3, according to this <a href="https://github.com/jessebikman/Sublime-Text-2-build-Matlab-code" rel="nofollow noreferrer">github repository</a>:</p>
  <pre><code>{
      &quot;cmd&quot;: [&quot;/usr/local/MATLAB/R2013a/bin/matlab&quot;, &quot;-nosplash&quot;, &quot;&lt;$file_name&quot;],
      &quot;selector&quot;: &quot;source.m&quot;
  }
  </code></pre>
  <p>But if the build system is set to <em>automatic</em>, after pressing <code>Ctrl + b</code>, Sublime Text says <em>No Build System</em>.
  Is there something wrong with the selector?</p>
  <blockquote>
  <p><code>selector</code><br />
  If the <strong>Tools | Build System | Automatic</strong> option is set, Sublime Text will automatically find the corresponding build system for the active file by matching <code>selector</code> to the file's scope.</p>
  </blockquote>
  <p>-- <a href="https://docs.sublimetext.io/guide/usage/build-systems.html" rel="nofollow noreferrer">https://docs.sublimetext.io/guide/usage/build-systems.html</a></p>