Last active
February 13, 2018 09:30
-
-
Save lisacatalano/f0d6be59ad86cdf8b673 to your computer and use it in GitHub Desktop.
Brackets Course (Writing/Editing Code Shortcuts Lesson)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<h2>Writing/Editing Code</h2> | |
<div class="shortcuts"> | |
<h3>Keyboard Shortcuts</h3> | |
<ul> | |
<li><strong>Ctrl+X</strong> Delete/Cut line/selection</li> | |
<li><strong>Ctrl+D</strong> Duplicate line/selection</li> | |
<li><strong>Ctrl+C</strong> Copy line/selection</li> | |
<li><strong>Ctrl+V</strong> Paste</li> | |
<li><strong>Ctrl+/</strong> Single Line Comment</li> | |
<li><strong>Ctrl+Shift+/</strong> Block Comment</li> | |
<li><strong>Ctrl+Enter</strong> Add a new line before the current line</li> | |
<li><strong>Ctrl+Shift+Enter</strong> Add a new line above the current line</li> | |
</ul> | |
</div> | |
<div class="notes"> | |
<h3>Notes</h3> | |
<ul> | |
<li>When using a shortcut to copy/delete/cut code, if you have a selection made, that is what will get copied or cut. If you don't have an active selection, the current line will get copied or cut.</li> | |
<li>You can get comments to line up with your code if you select all the text on the line and do a block comment instead of a single line comment.</li> | |
<li>When copying a block of code, make sure you select from the beginning of the first line to the end of the last line, instead of just the beginning and the end of text.</li> | |
</ul> | |
</div> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment