title: Shortcut key to run (build) code up to the current line in SublimeText3?
body: <p>I use SublimeText3 on macOS for writing my code. I would like to run/build a code up to the current line where cursor is situated.
  Is there a shortcut key to do that?</p>
  <p>A shortcut key to select all lines from the beginning to the current line will also help. I can use that followed by key binding for build.</p>
  <p>Although the example given below is short, I intend to use it in a script containing many lines of code.</p>
  <p>Example .py script:</p>
  <pre><code> print(&quot;a&quot;)
   print(&quot;b&quot;) #keep cursor here and use key board shortcut to run all lines of code up to this line.
   print(&quot;c&quot;)
  </code></pre>