Sublime Forum

AutoPHPDollar-type var name without $,and this plugin add it

#1

Hi, i wrote this plugin for myself. But it can be useful for other PHP developers.
You should type $ before any variable name in PHP, this is really annoying cause shift+4 combination is far away from keyboard midline.
With this plugin, you can type only variable name, and it adds “missing” $ sign.

You can get it here: https://github.com/graarh/sublime-AutoPHPDollar

0 Likes

#2

I create php variable and plugin doesn’t add $ character. How to use it? Thx

0 Likes

#3

Check that your current file syntax is set to PHP in sublime.

This plugin adds $ sign if the variable name has been used already.
Also it adds $ if variable followed by “=”, and few other cases, you can check the config file for it.

0 Likes

#4

this plugin is really useless. it does not even allow me to write texts in quotes

$blah = “this is bad” becomes $blah = “$this is bad”

0 Likes