<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Christopher Birkenhagen</title>
    <description>The latest articles on DEV Community by Christopher Birkenhagen (@secondaryfun).</description>
    <link>https://dev.to/secondaryfun</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F450267%2Fcd71af5f-d2ef-483c-828f-ff184be4289a.jpeg</url>
      <title>DEV Community: Christopher Birkenhagen</title>
      <link>https://dev.to/secondaryfun</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/secondaryfun"/>
    <language>en</language>
    <item>
      <title>Setup a notes repository with basic note functionality and auto-syncing to github</title>
      <dc:creator>Christopher Birkenhagen</dc:creator>
      <pubDate>Mon, 10 Aug 2020 17:14:19 +0000</pubDate>
      <link>https://dev.to/secondaryfun/setup-a-notes-repository-with-basic-note-functionality-and-auto-syncing-to-github-4khh</link>
      <guid>https://dev.to/secondaryfun/setup-a-notes-repository-with-basic-note-functionality-and-auto-syncing-to-github-4khh</guid>
      <description>&lt;h1&gt;
  
  
  VS Code &amp;amp; GitHub for Notes
&lt;/h1&gt;

&lt;p&gt;Setup a notes repository with basic note functionality and auto-syncing to github.&lt;/p&gt;

&lt;h2&gt;
  
  
  Background
&lt;/h2&gt;

&lt;p&gt;An essential tool for all projects is a good note-taking app. Normally, I use Evernote as it has excellent functionality, syncs automatically, and has support for web, mobile, windows and mac. I have used it for years, and basically keep everything there, from tax preparation planning, to cookie recipes, to important scanned documents and saved emails.  &lt;/p&gt;

&lt;p&gt;However, Evernote does not support markdown or, more importantly, code snippets. This seems like a massive oversight, but I understand it's based off of their underlying code.  &lt;/p&gt;

&lt;p&gt;To address the issue, rather than make a major change to my workflow and switch over to an entirely new platform for notes, I have adapted my other workhorse, VSCode, for coding specific note taking.  The key functionality I need for coding notes are screenshot pasting and code snippets, in addition to normal text formatting and auto-syncing.  &lt;/p&gt;

&lt;h2&gt;
  
  
  Setup:
&lt;/h2&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;p&gt;Install VSCode Extensions:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;&lt;a href="https://marketplace.visualstudio.com/items?itemName=canadaduane.notes"&gt;Notes&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://marketplace.visualstudio.com/items?itemName=emeraldwalk.RunOnSave"&gt;RunOnSave&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://marketplace.visualstudio.com/items?itemName=mushan.vscode-paste-image"&gt;Paste Image&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://marketplace.visualstudio.com/items?itemName=streetsidesoftware.code-spell-checker"&gt;Code Spell Checker&lt;/a&gt;&lt;/li&gt;
&lt;/ol&gt;


&lt;/li&gt;
&lt;li&gt;

&lt;p&gt;Create a script file at path: ".auto/sync.sh"&lt;br&gt;
&lt;/p&gt;

&lt;pre class="highlight plaintext"&gt;&lt;code&gt;echo "Synching Notes"
git pull
git add .
git commit -m "Sync Notes - $(date)"
git push
&lt;/code&gt;&lt;/pre&gt;




&lt;/li&gt;
&lt;li&gt;

&lt;p&gt;Modify permissions on your script file:&lt;br&gt;
&lt;/p&gt;

&lt;p&gt;&lt;code&gt;chmod u+x ./.auto/script.sh&lt;/code&gt;&lt;br&gt;
&lt;/p&gt;


&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Setup ".note" file auto-sync on save using "sync.sh".&lt;/p&gt;&lt;/li&gt;
&lt;/ol&gt;

&lt;div class="highlight"&gt;&lt;pre class="highlight plaintext"&gt;&lt;code&gt;* RunOnSave Settings:
    * Path: ".vscode/settings.json"
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;



&lt;div class="highlight"&gt;&lt;pre class="highlight plaintext"&gt;&lt;code&gt;```
"emeraldwalk.runonsave": {
    "commands": [
        {
            "match": ".notes",
            "isAsync": true,
            "cmd": "./.auto/sync.sh"
        }
    ]
}
```
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;



&lt;ol&gt;
&lt;li&gt;Add notes in your preferred note directory structure.
&lt;/li&gt;
&lt;/ol&gt;

&lt;h2&gt;
  
  
  Sources
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;&lt;a href="https://dev.to/theagilemonkeys/using-vs-code-for-notes-taking-3eof"&gt;https://dev.to/theagilemonkeys/using-vs-code-for-notes-taking-3eof&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://sciwiki.fredhutch.org/compdemos/vscode_markdown_howto/"&gt;https://sciwiki.fredhutch.org/compdemos/vscode_markdown_howto/&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;

</description>
      <category>vscode</category>
      <category>github</category>
      <category>beginners</category>
    </item>
  </channel>
</rss>
