Atom Creat Custom Snippet Step by Step Easy Guide for Beginners

September 25, 2019 | By the+gnu+linux+evangelist | Filed in: Tutorial.

Creating Custom Snippet

  1. Open the Snippets Cson File
    Edit >> Snippets:

    How to Create Atom Snippet Step by Step Quick Start Guide - Open Snippets
    And Start Editing your New Snippet there:
    How to Create Atom Snippet Step by Step Quick Start Guide - Edit Snippet

  2. Finally, Try to Make a Custom Atom Snippet
    Just Appending the Snippet Content…
    Here a Test Text/Html Snippet’s Content:

    '.text.html.basic':
    'Hello World':
    'prefix': 'hi'
    'body': 'Hello World!'
    

    A Comma at the Beginning of the Scope declaration it’s Needed.
    The General Form is like:

    '.[SCOPE]':
    '[NAME]':
    'prefix': '[SHORTCUT]'
    'body': '[SNIPCONTENT]'
    
  3. Now to Test the New Snippet
    First, make a File with Right Language’s Extension, so in our Example .html
    And to Run the Snip, first Type it, here ‘hi‘; and then Hit the ‘Tab‘ Key.

Contents


Tags: , , ,

QuickChic Theme • Powered by WordPress