samuelhauser
12/12/2016 - 7:26 PM

Sublime Text 3

<snippet>
	<content><![CDATA[
jQuery(document).ready(function(\$) {

	$0

});
]]></content>
	<!-- Optional: Set a tabTrigger to define how to trigger the snippet -->
	<tabTrigger>_ready</tabTrigger>
	<description>jQuery ready</description>
	<!-- Optional: Set a scope to limit where the snippet will trigger -->
	<scope>source.js,source.js.embedded.html</scope>
</snippet>
<snippet>
	<content><![CDATA[
console.log(${1:this});
]]></content>
	<!-- Optional: Set a tabTrigger to define how to trigger the snippet -->
	<tabTrigger>_log</tabTrigger>
	<description>jQuery Log</description>
	<!-- Optional: Set a scope to limit where the snippet will trigger -->
	<!-- <scope>source.python</scope> -->
</snippet>

Installation

The simplest method of installation is through the Sublime Text console. The console is accessed via the ctrl+` shortcut or the View > Show Console menu. Once open, paste the appropriate Python code for your version of Sublime Text into the console.

import urllib.request,os,hashlib; h = 'df21e130d211cfc94d9b0905775a7c0f' + '1e3d39e33b79698005270310898eea76'; pf = 'Package Control.sublime-package'; ipp = sublime.installed_packages_path(); urllib.request.install_opener( urllib.request.build_opener( urllib.request.ProxyHandler()) ); by = urllib.request.urlopen( 'http://packagecontrol.io/' + pf.replace(' ', '%20')).read(); dh = hashlib.sha256(by).hexdigest(); print('Error validating download (got %s instead of %s), please try manual install' % (dh, h)) if dh != h else open(os.path.join( ipp, pf), 'wb' ).write(by)

Add Packages

Alignment, ApacheConf.tmLanguage, BracketGuard, BracketHighlighter, DocBlockr, EditorConfig, Emmet, Gist, HTML5, Indent XML, Jade, jQuery Snippets pack, LESS, Line Endings Unify, Material Theme, PlainTasks, SCSS, SFTP, SideBarEnhancements, SublimeCodeIntel, SublimeLinter, SublimeLinter-contrib-scss-lint, TypoScript

<snippet>
    <content><![CDATA[
/**
 * ${1:$SELECTION}
 *
 * @var $2
 */
protected \$${1/_(\w)/\U$1/g$1};

/**
 * Returns the $1
 *
 * @return $2 \$${1/_(\w)/\U$1/g$1}
 */
public function get${1/(?:^|_)(\w)/\U$1$2/g$1}() {
	return \$this->${1/_(\w)/\U$1/g$1};
}

/**
 * Sets the $1
 *
 * @param $2 \$${1/_(\w)/\U$1/g$1}
 * @return void
 */
public function set${1/(?:^|_)(\w)/\U$1$2/g$1}(${3:$2 }\$${1/_(\w)/\U$1/g$1}) {
	\$this->${1/_(\w)/\U$1/g$1} = \$${1/_(\w)/\U$1/g$1};
}
]]></content>
    <!-- Optional: Tab trigger to activate the snippet -->
    <tabTrigger>gs</tabTrigger>
    <!-- Optional: Scope the tab trigger will be active in -->
    <scope>source.php</scope>
    <!-- Optional: Description to show in the menu -->
    <description>Create getter and setter methods</description>
</snippet>
{
	"always_show_minimap_viewport": true,
	"bold_folder_labels": true,
	"color_scheme": "Packages/Material Theme/schemes/Material-Theme.tmTheme",
	"ensure_newline_at_eof_on_save": true,
	"font_options":
	[
		"gray_antialias"
	],
	"font_size": 16,
	"ignored_packages":
	[
		"Vintage"
	],
	"indent_guide_options":
	[
		"draw_normal",
		"draw_active"
	],
	"line_padding_bottom": 3,
	"line_padding_top": 3,
	"overlay_scroll_bars": "enabled",
	"theme": "Material-Theme.sublime-theme",
	"word_wrap": false
}