<?xml version="1.0" encoding="utf-8"?><feed xmlns="http://www.w3.org/2005/Atom" ><generator uri="https://jekyllrb.com/" version="3.9.2">Jekyll</generator><link href="https://code2020.dev/feed.xml" rel="self" type="application/atom+xml" /><link href="https://code2020.dev/" rel="alternate" type="text/html" /><updated>2022-11-22T03:50:52+00:00</updated><id>https://code2020.dev/feed.xml</id><title type="html">Code 20/20</title><subtitle>VS Code tips and tricks from the future to today</subtitle><author><name>Matt Bierner</name></author><entry><title type="html">Markdown: Convert to reference link</title><link href="https://code2020.dev/markdown-convert-reference-link/" rel="alternate" type="text/html" title="Markdown: Convert to reference link" /><published>2022-11-14T00:00:00+00:00</published><updated>2022-11-14T00:00:00+00:00</updated><id>https://code2020.dev/markdown-convert-reference-link</id><content type="html" xml:base="https://code2020.dev/markdown-convert-reference-link/">&lt;p&gt;Markdown reference links let you reuse the same link at multiple spots in a file.&lt;/p&gt;

&lt;p&gt;Use VS Code’s &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;Extract Link Definition&lt;/code&gt; code action quickly convert all occurrences of a given link in the current file to a reference link. This creates a link definition at the bottom of the file and rewrites all links to reference that definition.&lt;/p&gt;

&lt;p&gt;Reference links are especially helpful when maintaining longer #Markdown documents.&lt;/p&gt;</content><author><name>Matt Bierner</name></author><category term="markdown" /><category term="code-actions" /><summary type="html">Markdown reference links let you reuse the same link at multiple spots in a file.</summary></entry><entry><title type="html">Sticky scrolling</title><link href="https://code2020.dev/stricky-scrolling/" rel="alternate" type="text/html" title="Sticky scrolling" /><published>2022-11-01T00:00:00+00:00</published><updated>2022-11-01T00:00:00+00:00</updated><id>https://code2020.dev/stricky-scrolling</id><content type="html" xml:base="https://code2020.dev/stricky-scrolling/">&lt;p&gt;Sticky scrolling quickly shows you where you are in your code. This feature shows the class/function you are in at the top of the editor.&lt;/p&gt;

&lt;p&gt;You can enable it with the &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;editor.stickyScroll.enabled&lt;/code&gt; setting. Languages like  JavaScript/TypeScript and Markdown are supported out of the box. Support for other languages can be enabled by extensions.&lt;/p&gt;</content><author><name>Matt Bierner</name></author><category term="navigation" /><summary type="html">Sticky scrolling quickly shows you where you are in your code. This feature shows the class/function you are in at the top of the editor.</summary></entry><entry><title type="html">Markdown link validation</title><link href="https://code2020.dev/markdown-link-validation/" rel="alternate" type="text/html" title="Markdown link validation" /><published>2022-10-12T00:00:00+00:00</published><updated>2022-10-12T00:00:00+00:00</updated><id>https://code2020.dev/markdown-link-validation</id><content type="html" xml:base="https://code2020.dev/markdown-link-validation/">&lt;p&gt;Tried of breaking links in your markdown? Try turning on the new &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;markdown.validate.enabled&lt;/code&gt; setting in VS Code!&lt;/p&gt;

&lt;p&gt;This will help check links to images, local files, and other sections of your Markdown document.&lt;/p&gt;</content><author><name>Matt Bierner</name></author><category term="markdown" /><summary type="html">Tried of breaking links in your markdown? Try turning on the new markdown.validate.enabled setting in VS Code!</summary></entry><entry><title type="html">Crop images</title><link href="https://code2020.dev/crop-images/" rel="alternate" type="text/html" title="Crop images" /><published>2022-10-05T00:00:00+00:00</published><updated>2022-10-05T00:00:00+00:00</updated><id>https://code2020.dev/crop-images</id><content type="html" xml:base="https://code2020.dev/crop-images/">&lt;p&gt;The &lt;a href=&quot;https://marketplace.visualstudio.com/items?itemName=Tyriar.luna-paint&quot;&gt;Luna Paint extension&lt;/a&gt; lets you crop png, jpeg, bmp, webp, and ico image files directly within VS Code!&lt;/p&gt;</content><author><name>Matt Bierner</name></author><summary type="html">The Luna Paint extension lets you crop png, jpeg, bmp, webp, and ico image files directly within VS Code!</summary></entry><entry><title type="html">Drag and drop code</title><link href="https://code2020.dev/drag-and-drop-code/" rel="alternate" type="text/html" title="Drag and drop code" /><published>2022-09-29T00:00:00+00:00</published><updated>2022-09-29T00:00:00+00:00</updated><id>https://code2020.dev/drag-and-drop-code</id><content type="html" xml:base="https://code2020.dev/drag-and-drop-code/">&lt;p&gt;Just click and drag selected text to move it around in VS Code. If you hold &lt;kbd&gt;option&lt;/kbd&gt;/&lt;kbd&gt;alt&lt;/kbd&gt; when dropping, the selected text is copied instead of moved.&lt;/p&gt;

&lt;p&gt;Disable drag and drop with the &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;editor.dragAndDrop&lt;/code&gt; setting.&lt;/p&gt;</content><author><name>Matt Bierner</name></author><category term="editor" /><summary type="html">Just click and drag selected text to move it around in VS Code. If you hold option/alt when dropping, the selected text is copied instead of moved.</summary></entry><entry><title type="html">Git post commit commands</title><link href="https://code2020.dev/git-post-commit/" rel="alternate" type="text/html" title="Git post commit commands" /><published>2022-09-24T00:00:00+00:00</published><updated>2022-09-24T00:00:00+00:00</updated><id>https://code2020.dev/git-post-commit</id><content type="html" xml:base="https://code2020.dev/git-post-commit/">&lt;p&gt;The &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;git.postCommitCommand&lt;/code&gt; setting makes VS Code automatically run a git push or a git pull and push after a commit.&lt;/p&gt;

&lt;p&gt;Even after configuring the default using the setting, you can select different behavior for an individual commit with the commit button’s dropdown.&lt;/p&gt;</content><author><name>Matt Bierner</name></author><category term="git" /><category term="setting" /><summary type="html">The git.postCommitCommand setting makes VS Code automatically run a git push or a git pull and push after a commit.</summary></entry><entry><title type="html">Hex data inspector</title><link href="https://code2020.dev/hex-data-inspector/" rel="alternate" type="text/html" title="Hex data inspector" /><published>2022-09-21T00:00:00+00:00</published><updated>2022-09-21T00:00:00+00:00</updated><id>https://code2020.dev/hex-data-inspector</id><content type="html" xml:base="https://code2020.dev/hex-data-inspector/">&lt;p&gt;In the &lt;a href=&quot;https://marketplace.visualstudio.com/items?itemName=ms-vscode.hexeditor&quot;&gt;Hex Editor extension&lt;/a&gt; for VS Code, the data inspector to view selected binary data as different data types.&lt;/p&gt;

&lt;p&gt;Includes support for signed and unsigned ints of different lengths, floats, and chars. You can even switch between big and little endian.&lt;/p&gt;</content><author><name>Matt Bierner</name></author><summary type="html">In the Hex Editor extension for VS Code, the data inspector to view selected binary data as different data types.</summary></entry><entry><title type="html">Loaded scripts view</title><link href="https://code2020.dev/loaded-scripts-view/" rel="alternate" type="text/html" title="Loaded scripts view" /><published>2022-09-20T00:00:00+00:00</published><updated>2022-09-20T00:00:00+00:00</updated><id>https://code2020.dev/loaded-scripts-view</id><content type="html" xml:base="https://code2020.dev/loaded-scripts-view/">&lt;p&gt;The Loaded Scripts View in VS Code lets you see all scripts that have been loaded while debugging JavaScript.&lt;/p&gt;

&lt;p&gt;You can browse the source of loaded scripts and even set breakpoints in dynamically loaded scripts, such as evaled code!&lt;/p&gt;</content><author><name>Matt Bierner</name></author><category term="terminal" /><summary type="html">The Loaded Scripts View in VS Code lets you see all scripts that have been loaded while debugging JavaScript.</summary></entry><entry><title type="html">Cycle file parts while renaming</title><link href="https://code2020.dev/f2-cycle-renaming/" rel="alternate" type="text/html" title="Cycle file parts while renaming" /><published>2022-09-15T00:00:00+00:00</published><updated>2022-09-15T00:00:00+00:00</updated><id>https://code2020.dev/f2-cycle-renaming</id><content type="html" xml:base="https://code2020.dev/f2-cycle-renaming/">&lt;p&gt;Press &lt;kbd&gt;F2&lt;/kbd&gt; when renaming files in the VS Code explorer to cycle through the parts of the file name. This loops through:&lt;/p&gt;

&lt;ul&gt;
  &lt;li&gt;Just the name (without ext)&lt;/li&gt;
  &lt;li&gt;The entire filename&lt;/li&gt;
  &lt;li&gt;Just the extension&lt;/li&gt;
&lt;/ul&gt;</content><author><name>Matt Bierner</name></author><category term="explorer" /><summary type="html">Press F2 when renaming files in the VS Code explorer to cycle through the parts of the file name. This loops through:</summary></entry><entry><title type="html">Authoring git commits in an editor</title><link href="https://code2020.dev/git-editor-commit-messages/" rel="alternate" type="text/html" title="Authoring git commits in an editor" /><published>2022-09-06T00:00:00+00:00</published><updated>2022-09-06T00:00:00+00:00</updated><id>https://code2020.dev/git-editor-commit-messages</id><content type="html" xml:base="https://code2020.dev/git-editor-commit-messages/">&lt;p&gt;Need more space to author a long git commit message in VS Code? Just press &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;Commit&lt;/code&gt; with an empty message in the source control view. This opens a full sized editor for writing the commit message!&lt;/p&gt;</content><author><name>Matt Bierner</name></author><category term="git" /><category term="editor" /><summary type="html">Need more space to author a long git commit message in VS Code? Just press Commit with an empty message in the source control view. This opens a full sized editor for writing the commit message!</summary></entry></feed>