0

Can I in PhpStorm 2023.2.2 by selecting hot key inside editor to insert code which is in clipboard commented? The result would be something like :

/*
Text from clipboard
*/

I did not find where enter expression ?

enter image description here

?

5
  • 3
    It should be possible with Live Templates variables. Set a variable expression to "clipboard()". Commented Jan 22 at 7:13
  • I updated topic. Please check
    – mstdmstd
    Commented Jan 22 at 8:43
  • @mstdmstd Insert the variable first (where you want that clipboard content to be inserted) and then use the Edit Variables button where you can use the actual clipboard() function. 1) jetbrains.com/help/phpstorm/using-live-templates.html 2) jetbrains.com/help/phpstorm/… 3) jetbrains.com/help/phpstorm/…
    – LazyOne
    Commented Jan 22 at 15:27
  • @LazyOne , I see "Edit Variables" - (on my printscreen) - but it is disabled. b) Where have I to Insert the variable ?
    – mstdmstd
    Commented Feb 4 at 15:09
  • 1
    @mstdmstd 1) Check the links that I've provided in my previous comment. Those are links to the official PhpStorm help / documentation page (I know, I know -- nobody wants to read the help/documentation these days, it's so boring and so 2023...) But it has ALL the info you need. 2) The button will become active once you have at leats one variable in your template.
    – LazyOne
    Commented Feb 4 at 15:15

0

Browse other questions tagged or ask your own question.