# Your snippets # # Atom snippets allow you to enter a simple prefix in the editor and hit tab to # expand the prefix into a larger code block with templated values. # # You can create a new snippet in this file by typing "snip" and then hitting # tab. # # An example CoffeeScript snippet to expand log to console.log: # # '.source.coffee': # 'Console log': # 'prefix': 'log' # 'body': 'console.log $1' # # Each scope (e.g. '.source.coffee' above) can only be declared once. # # This file uses CoffeeScript Object Notation (CSON). # If you are unfamiliar with CSON, you can read more about it in the # Atom Flight Manual: # http://flight-manual.atom.io/using-atom/sections/basic-customization/#_cson '.source.php': 'Schema up': 'prefix': 's_up' 'body': """ Schema::create('$1', function ($table) { $table->increments('id'); $table->string('name'); $table->text('description')->nullable(); $table->timestamps(); }); """ 'Schema down': 'prefix': 's_d' 'body': "Schema::drop('$1');" 'Method': 'prefix': 'met' 'body': """ ${1:public} function ${2:name}($3) { ${4://} } """ '.source.js': 'console.log': 'prefix':'cl' 'body':'console.log($1);' 'Debugger': 'prefix':'dg' 'body':'debugger;' 'length': 'prefix':'len' 'body':'length' 'function Object': 'prefix':'fun' 'body':""" function ($1){ ${3://} }$2 """ 'return false': 'prefix':'rf' 'body':'return false;' 'return$1': 'prefix':'r' 'body':'return;' '.source.html': 'BootstrapCDN': 'prefix': 'bootstrapcss' 'body': ''