<?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>Forem: MihailFox</title>
    <description>The latest articles on Forem by MihailFox (@mihailfox).</description>
    <link>https://forem.com/mihailfox</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%2F281915%2F0572abce-d3b8-461e-b6e8-8eef27029999.png</url>
      <title>Forem: MihailFox</title>
      <link>https://forem.com/mihailfox</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://forem.com/feed/mihailfox"/>
    <language>en</language>
    <item>
      <title>Snippets</title>
      <dc:creator>MihailFox</dc:creator>
      <pubDate>Fri, 29 Nov 2019 21:57:05 +0000</pubDate>
      <link>https://forem.com/mihailfox/snippets-oh2</link>
      <guid>https://forem.com/mihailfox/snippets-oh2</guid>
      <description>&lt;p&gt;Most of the time when I learn to code I discover there are a lot of repetitive tasks. Visual Studio Code allows you to create your own snippets for the purpose of reducing those repetitions. At the moment I'm learning &lt;code&gt;express.js&lt;/code&gt; and some templating with &lt;code&gt;ejs&lt;/code&gt;. Want to guess what was my first snippet? &lt;code&gt;express app&lt;/code&gt; boilerplate followed by &lt;code&gt;ejs tags&lt;/code&gt;.&lt;/p&gt;

&lt;p&gt;You can access vscode snippets by clicking the Manage Gear on the bottom left corner and choosing &lt;code&gt;User snippets&lt;/code&gt;. By default vscode stores them in the user folder under &lt;code&gt;C:\Users\user-name\AppData\Roaming\Code\User\snippets\&lt;/code&gt;.&lt;/p&gt;

&lt;p&gt;This is the content of my snippet files:&lt;/p&gt;

&lt;p&gt;&lt;code&gt;express.code-snippets&lt;/code&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight"&gt;&lt;pre class="highlight plaintext"&gt;&lt;code&gt;{
    "express boilerplate":{
        "scope":"javascript",
        "prefix": "exp",
        "body": [
            "const express = require('express');",
            "const serverPort = process.env.PORT || ${1:port_number};",
            "const app = express();\n",
            "app.get('/', (req, res) =&amp;gt; {\n",
            "\tres.send('$2');\n",
            "});\n",
            "app.listen(serverPort, () =&amp;gt; {",
            "console.log(`Server started on port &amp;lt; ${$serverPort} &amp;gt;`);",
            "});"
        ]
    },

    "app.get boilerplate":{
        "scope": "javascript",
        "prefix": "app.get",
        "body": [
            "app.get('${1:/}', (req, res) =&amp;gt; {\n",
            "\tres.send('$2');\n",
            "});"
        ]
    },
    "app.post boilerplate":{
        "scope": "javascript",
        "prefix": "app.post",
        "body": [
            "app.post('${1:/}', (req, res) =&amp;gt; {\n",
            "\tres.send('$2');\n",
            "});"
        ]
    }

}
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;



&lt;p&gt;&lt;code&gt;esj.code-snippets&lt;/code&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight"&gt;&lt;pre class="highlight plaintext"&gt;&lt;code&gt;{
    "Output value": {
        "scope": "ejs, html, javascript",
        "prefix": "ejs",
        "body": "&amp;lt;%= $1 %&amp;gt;$0",
        "description": "Outputs the value into the template (HTML escaped)"
    },

    "Scriptlet": {
        "scope": "ejs, html, javascript",
        "prefix": "ejs.scrip",
        "body": "&amp;lt;% $1 %&amp;gt;$0",
        "description": "'Scriptlet' tag, for control-flow, no output"
    },

    "Whitespace trim": {
        "scope": "ejs, html, javascript",
        "prefix": "ejs.trim",
        "body": "&amp;lt;%_ $1 _%&amp;gt;$0",
        "description": "Removes all whitespace before and after"
    },

    "Include": {
        "scope": "ejs, html, javascript",
        "prefix": "ejs.include",
        "body": "&amp;lt;%- include('$1'$2) -%&amp;gt;$0",
        "description": "Removes all whitespace before and after"
    }

}
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;



</description>
      <category>node</category>
      <category>ejs</category>
      <category>vscode</category>
      <category>javascript</category>
    </item>
    <item>
      <title>Visual Studio Code Extensions</title>
      <dc:creator>MihailFox</dc:creator>
      <pubDate>Thu, 28 Nov 2019 21:18:38 +0000</pubDate>
      <link>https://forem.com/mihailfox/visual-studio-code-extensions-302d</link>
      <guid>https://forem.com/mihailfox/visual-studio-code-extensions-302d</guid>
      <description>&lt;p&gt;Hello dev.to community!&lt;/p&gt;

&lt;p&gt;If you ever wondered how to create a list of your extensions you can do it by launching vscode with a builtin parameter &lt;code&gt;code --list-extensions&lt;/code&gt;.&lt;/p&gt;

&lt;h4&gt;
  
  
  This is a list of the vscode extensions I use. To find more info about the extension click on the link.
&lt;/h4&gt;

&lt;h5&gt;
  
  
  &lt;a href="https://marketplace.visualstudio.com/items?itemName=Shan.code-settings-sync"&gt;Settings Sync&lt;/a&gt;
&lt;/h5&gt;

&lt;p&gt;Synchronizes Settings, Snippets, Themes, File Icons, Launch, Keybindings, Workspaces and Extensions Across Multiple Machines Using GitHub Gist.&lt;/p&gt;

&lt;h5&gt;
  
  
  &lt;a href="https://marketplace.visualstudio.com/items?itemName=eamodio.gitlens"&gt;Gitlens&lt;/a&gt;
&lt;/h5&gt;

&lt;p&gt;It helps you to visualize code authorship at a glance via Git blame annotations and code lens, seamlessly navigate and explore Git repositories, gain valuable insights via powerful comparison commands, and so much more.&lt;/p&gt;

&lt;h5&gt;
  
  
  &lt;a href="https://marketplace.visualstudio.com/items?itemName=esbenp.prettier-vscode"&gt;Prettier&lt;/a&gt;
&lt;/h5&gt;

&lt;p&gt;Prettier is an opinionated code formatter. It enforces a consistent style by parsing your code and re-printing it with its own rules that take the maximum line length into account, wrapping code when necessary.&lt;/p&gt;

&lt;h5&gt;
  
  
  &lt;a href="https://marketplace.visualstudio.com/items?itemName=streetsidesoftware.code-spell-checker"&gt;Code Spell Checker&lt;/a&gt;
&lt;/h5&gt;

&lt;p&gt;A basic spell checker that works well with camelCase code.&lt;/p&gt;

&lt;h5&gt;
  
  
  &lt;a href="https://marketplace.visualstudio.com/items?itemName=Atishay-Jain.All-Autocomplete"&gt;All-Autocomplete&lt;/a&gt;
&lt;/h5&gt;

&lt;p&gt;Provides autocompletion in Visual Studio Code items based on all open editors.&lt;/p&gt;

&lt;h5&gt;
  
  
  &lt;a href="https://marketplace.visualstudio.com/items?itemName=christian-kohler.path-intellisense"&gt;Path Intellisense&lt;/a&gt;
&lt;/h5&gt;

&lt;p&gt;Visual Studio Code plugin that autocompletes filenames.&lt;/p&gt;

&lt;h5&gt;
  
  
  &lt;a href="https://marketplace.visualstudio.com/items?itemName=VisualStudioExptTeam.vscodeintellicode"&gt;Visual Studio IntelliCode&lt;/a&gt;
&lt;/h5&gt;

&lt;p&gt;The Visual Studio IntelliCode extension provides AI-assisted development features for Python, TypeScript/JavaScript and Java developers in Visual Studio Code, with insights based on understanding your code context combined with machine learning.&lt;/p&gt;

&lt;h5&gt;
  
  
  &lt;a href="https://marketplace.visualstudio.com/items?itemName=ritwickdey.LiveServer"&gt;Live Server&lt;/a&gt;
&lt;/h5&gt;

&lt;p&gt;Launch a development local Server with live reload feature for static &amp;amp; dynamic pages.&lt;/p&gt;

&lt;h5&gt;
  
  
  &lt;a href="https://marketplace.visualstudio.com/items?itemName=alefragnani.Bookmarks"&gt;Bookmarks&lt;/a&gt;
&lt;/h5&gt;

&lt;p&gt;It helps you to navigate in your code, moving between important positions easily and quickly. No more need to search for code. It also supports a set of selection commands, which allows you to select bookmarked lines and regions between bookmarked lines. You can also define Labels for you bookmarks.&lt;/p&gt;

&lt;h5&gt;
  
  
  &lt;a href="https://marketplace.visualstudio.com/items?itemName=CoenraadS.bracket-pair-colorizer-2"&gt;Bracket Pair Colorizer v2&lt;/a&gt;
&lt;/h5&gt;

&lt;p&gt;This extension allows matching brackets to be identified with colours. The user can define which tokens to match, and which colours to use.&lt;/p&gt;

&lt;h5&gt;
  
  
  &lt;a href="https://marketplace.visualstudio.com/items?itemName=humao.rest-client"&gt;Rest Client&lt;/a&gt;
&lt;/h5&gt;

&lt;p&gt;This extension allows you to send HTTP request and view the response in Visual Studio Code directly.&lt;/p&gt;

&lt;h5&gt;
  
  
  &lt;a href="https://marketplace.visualstudio.com/items?itemName=PKief.material-icon-theme"&gt;Material Icon Theme&lt;/a&gt;
&lt;/h5&gt;

&lt;p&gt;The Material Icon Theme provides lots of icons based on Material Design for Visual Studio Code.&lt;/p&gt;

</description>
      <category>vscode</category>
      <category>extensions</category>
    </item>
  </channel>
</rss>
