Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/akrabat/sublime-akrabat
Useful SublimeText2 stuff
https://github.com/akrabat/sublime-akrabat
Last synced: 3 months ago
JSON representation
Useful SublimeText2 stuff
- Host: GitHub
- URL: https://github.com/akrabat/sublime-akrabat
- Owner: akrabat
- License: mit
- Created: 2012-05-12T09:59:51.000Z (over 12 years ago)
- Default Branch: master
- Last Pushed: 2013-12-05T22:42:08.000Z (about 11 years ago)
- Last Synced: 2024-10-04T11:30:46.630Z (3 months ago)
- Language: C
- Size: 154 KB
- Stars: 10
- Watchers: 4
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
#sublime-akrabat
This repository contains useful Sublime Text 2 stuff.
##PHP Getter & Setter snippet
Type `gs` followed by `tab` and then your underscore_separated property name to create a getter and setter method.
Alternatively, select some text and press `shift+cmd+p` and then type `gs` to automatically replace the selected text with the getter and setter methods completed for the text that was selected.
As an example, typing `gs {tab} date_last_updated` will produce:
/**
* Getter for date_last_updated
*
* @return mixed
*/
public function getDateLastUpdated()
{
return $this->date_last_updated;
}
/**
* Setter for date_last_updated
*
* @param mixed $dateLastUpdated Value to set
* @return self
*/
public function setDateLastUpdated($dateLastUpdated)
{
$this->date_last_updated = $dateLastUpdated;
return $this;
}##Tidy:
Three commands to tidy HTML, XML and JSON:
From Command Palette:
* Tidy XML (ctrl+shift+x)
* Tidy HTML (ctrl+shift+h)
* Tidy JSON (ctrl+shift+j)## Some useful commands (accessed via cmd+shift+p)
* `Open Containing Folder` to open a Finder window.
* `Open Terminal Here` to open a Terminal at the directory where this file is.
* `Open Terminal at Project Folder` to open a Terminal at the directory where the project is.[Terminal](http://wbond.net/sublime_packages/terminal) from Will Bond is required.