<p dir="auto">Other editors provide a shortcut to duplicate the current selection, or if nothing is selected duplicate the whole line (actually the actions of <code class="notranslate">copyLinesDownAction</code> and <code class="notranslate">copyLinesUpAction</code>).</p>
<p dir="auto"><em>From <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/guillermooo/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/guillermooo">@guillermooo</a> on November 8, 2015 12:55</em></p>
<p dir="auto">From the docs, it seems that extensions need to include the key bindings in the manifest proper. For extensions that will contribute a lot of key bindings, it may be more convenient to include <em>files</em> of key binding definitions.</p>
<p dir="auto">Example:</p>
<div class="highlight highlight-source-json notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="...
&quot;contributes&quot;: {
    &quot;keybindings&quot;: [{
        &quot;command&quot;: &quot;extension.sayHello&quot;,
        &quot;key&quot;: &quot;ctrl+f1&quot;,
        &quot;mac&quot;: &quot;cmd+f1&quot;,
        &quot;when&quot;: &quot;editorTextFocus&quot;
    },
    { &quot;include&quot;: &quot;motions.json&quot; },
    { &quot;include&quot;: &quot;actions.json&quot; }
  ]
}
..."><pre class="notranslate"><span class="pl-ii">...</span>
<span class="pl-ent">"contributes"</span>: {
    <span class="pl-ent">"keybindings"</span>: [{
        <span class="pl-ent">"command"</span>: <span class="pl-s"><span class="pl-pds">"</span>extension.sayHello<span class="pl-pds">"</span></span>,
        <span class="pl-ent">"key"</span>: <span class="pl-s"><span class="pl-pds">"</span>ctrl+f1<span class="pl-pds">"</span></span>,
        <span class="pl-ent">"mac"</span>: <span class="pl-s"><span class="pl-pds">"</span>cmd+f1<span class="pl-pds">"</span></span>,
        <span class="pl-ent">"when"</span>: <span class="pl-s"><span class="pl-pds">"</span>editorTextFocus<span class="pl-pds">"</span></span>
    },
    { <span class="pl-ent">"include"</span>: <span class="pl-s"><span class="pl-pds">"</span>motions.json<span class="pl-pds">"</span></span> },
    { <span class="pl-ent">"include"</span>: <span class="pl-s"><span class="pl-pds">"</span>actions.json<span class="pl-pds">"</span></span> }
  ]
}
<span class="pl-ii">...</span></pre></div>
<p dir="auto"><em>Copied from original issue: Microsoft/vscode-extensionbuilders#82</em></p>