title: How to move tabs in Visual Studio Code with the keyboard?
body: <p>I found the documentation <a href="https://github.com/Microsoft/vscode/issues/8234#issuecomment-234573410" rel="nofollow noreferrer">here</a> and <a href="https://code.visualstudio.com/docs/extensionAPI/vscode-api-commands" rel="nofollow noreferrer">here</a> (under <code>moveActiveEditor</code>) for moving tabs, but I have trouble creating a key binding for it.</p>
  
  <p>I created the following (for a Mac, so it uses <code>cmd</code>):</p>
  
  <pre><code>[
    {
      "key": "alt+cmd+right",
      "command": "moveActiveEditor",
      "args": {
        "to": "position",
        "value": i + 1
      }
    }
  ]
  </code></pre>
  
  <p>But when I hit that key command, the tab moves to the first tab position instead of moving one tab position to the right. So clearly, the value of <code>i</code> is <code>0</code>, meaning it isn't returning the correct value of the current tab.</p>
  
  <p>How can I get this to work?</p>