title: How do you hide arbitrary section of code in VS Code?
body: <p>By "VS Code" I mean the lightweight text editor not the monolithic IDE, unfortunately searching this on google will bring up many pieces of irrelevant information about how to do this in Visual Studio. </p>
  
  <p>To the question itself, Anybody knows how to <strong>hide arbitrary selected lines of code in "Visual Studio Code"</strong>, preferably into a plus sign like collapsing does? </p>
  
  <p><strong><em>Note:</strong> this is different than collapsing nested code which probably could be achieved by <code>Ctrl+K,Ctrl+&lt;num&gt;</code> , what I need here is to hide specific block of code of choice, no matter nested or not.</em></p>
  
  <p>EDIT: I see there are people who don't understand my requirements.</p>
  
  <p><strong>for example, you may think what I want is this:</strong></p>
  
  <p>before hiding:</p>
  
  <pre><code>for i in j:
      for k in i:
          for l in k:
              somestuff...
  </code></pre>
  
  <p>after hiding:</p>
  
  <pre><code>[+] for i in j: ...
  </code></pre>
  
  <p><strong>What I actually want is this:</strong></p>
  
  <p>before hiding:</p>
  
  <pre><code># doing stuff about a
  a = ClassA()
  a.bar()
  a.i = 2
  a.j = 3
  a.k = 5
  </code></pre>
  
  <p>after hiding:</p>
  
  <pre><code>[+] ...  ( doing stuff about a )
  </code></pre>
  
  <p>2017.10.17 EDIT:
  turns out VS Code implemented a very similar feature called "Folding Regions" in VS Code 1.17.1 Update. <a href="https://code.visualstudio.com/updates/v1_17#_folding-regions" rel="noreferrer">link</a></p>