Whenever I type ‘for’ and press TAB to get the snippet I end up with a space at the end of the first line. When writing PSR2 compliant code this becomes a nuisance. I usually just fix it myself but could this be fixed for a future build please?
Trivial but annoying issue with PHP 'for' snippet
iamntz
#2
You can overwrite how this works by doing the following (assuming you are on ST3 & Windows):
- open the install path for sublime (that is on %programfiles%\Sublime Text 3)
- Open Packages folder
- Search for the package you want to change (in this case is PHP) then open it (is a zip file with a changed extension, so 7zip or winrar will do)
- Now go to Sublime, and from top menu pick Browse Packages
- If is not present, create a folder that have the same name as the package you want to change (PHP)
- Copy the snippet you want to change from the archive in the newly created folder ( e.g. for(-).sublime-snippet )
- Change the snippet to work as you want.
- Enjoy
0 Likes