Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

getset.sublime-snippet - Type hint - Sublime Text 4 #2

Open
lgeorgiev opened this issue Oct 18, 2021 · 1 comment
Open

getset.sublime-snippet - Type hint - Sublime Text 4 #2

lgeorgiev opened this issue Oct 18, 2021 · 1 comment

Comments

@lgeorgiev
Copy link

Hello,

Can a type hint be added?
I added $$2 but it doesn't work.
public function set${1/(?:^|_)(\w)/\U$1$2/g$1}(\$$2 \$${1/_(\w)/\U$1/g$1})

@lgeorgiev lgeorgiev changed the title Type hint getset.sublime-snippet - Type hint Oct 18, 2021
@lgeorgiev lgeorgiev changed the title getset.sublime-snippet - Type hint getset.sublime-snippet - Type hint - Sublime Text 4 Oct 18, 2021
@lgeorgiev
Copy link
Author

lgeorgiev commented Oct 18, 2021

I added ${2:} and now it works.

getter-setter-type-hint

gs <tab> propName <tab> DateTime <tab>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant