M
M
Michael R.2018-02-24 13:54:54
phpstorm
Michael R., 2018-02-24 13:54:54

Proper use of notes/snippets in phpStorm?

Good day!
Periodically, there are moments when it makes no sense to write the code again, because it has already been written and it is easier and more reliable (if the logic is complex) to copy it to a new project.
The first (and simple) thing that comes to mind is to create a folder, create files in the folder == type of programming language (html. css, php, js) and publish the necessary snippets in each file. But here is the same problem, but what to do when the file is several meters high? Ok, the files have been created, how then can you get quick access from phpStorm to these files? Maybe something like 'favorites'?
Question: what are the best solutions to use within this task on phpStorm >= 2017?
Thank you!

Answer the question

In order to leave comments, you need to log in

2 answer(s)
S
Sergey Epifanov, 2018-02-24
@kacheleff

Live Templates are probably for you

I
Igor Vorotnev, 2018-03-13
@HeadOnFire

I use a separate SnippetsLab application (I think there are analogues for other OSes). PhpStorm does not integrate directly with PhpStorm, but this is not necessary - the application hangs like a menubar app, a mini search / add window opens by hotkey, it is copied by clicking. Bonus - integrates with Gist.
What is used directly is very often distilled into Live Templates.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question