Create a gist now

Instantly share code, notes, and snippets.

Selecting Shortcuts
<h2>Selecting Code</h2>
<div class="shortcuts">
<h3>Mac Keyboard Shortcuts</h3>
<ul>
<li><strong>Ctrl+L</strong> Select the current line</li>
<li><strong>Cmd+B</strong> Select the current word</li>
<li><strong>Cmd+A</strong> Select all the text</li>
<li><strong>Shift+→</strong> Select the next character</li>
<li><strong>Shift+←</strong> Select the previous character</li>
<li><strong>Shift+↑</strong> Select the previous line</li>
<li><strong>Shift+↓</strong> Select the next line</li>
<li><strong>Shift+Alt+→</strong> Select next word</li>
<li><strong>Shift+Alt+←</strong> Select previous word</li>
<li><strong>Shift+Cmd+→</strong> Select to the end of line</li>
<li><strong>Shift+Cmd+←</strong> Select to the beginning of line</li>
<li><strong>Shift+Cmd+↑</strong> Select to the beginning of file/li>
<li><strong>Shift+Cmd+↓</strong> Select to the end of file</li>
</ul>
<h3>PC Keyboard Shortcuts</h3>
<ul>
<li><strong>Ctrl+L</strong> Select the current line</li>
<li><strong>Ctrl+B</strong> Select the current word</li>
<li><strong>Ctrl+A</strong> Select all the text</li>
<li><strong>Shift+→</strong> Select the next character</li>
<li><strong>Shift+←</strong> Select the previous character</li>
<li><strong>Shift+↑</strong> Select the previous line</li>
<li><strong>Shift+↓</strong> Select the next line</li>
<li><strong>Shift+Alt+→</strong> Select next word</li>
<li><strong>Shift+Alt+←</strong> Select previous word</li>
<li><strong>Shift+Cmd+→</strong> Select to the end of line</li>
<li><strong>Shift+Cmd+←</strong> Select to the beginning of line</li>
<li><strong>Shift+Cmd+Home</strong> Select to the beginning of file</li>
<li><strong>Shift+Cmd+End</strong> Select to the end of file</li>
</ul>
</div>
<div class="notes">
<h3>Notes</h3>
<ul>
<li>The PC and Mac shortcuts have some more complicated differences than normal for this section, so make sure you understand how it works on your system.</li>
</ul>
</div>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment