Skip to content

Instantly share code, notes, and snippets.

@lisacatalano
Last active August 29, 2015 14:06
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lisacatalano/604c8f7ea05d0e180bdc to your computer and use it in GitHub Desktop.
Save lisacatalano/604c8f7ea05d0e180bdc to your computer and use it in GitHub Desktop.
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