S
S
Sergey Burduzha2017-01-22 13:40:52
phpstorm
Sergey Burduzha, 2017-01-22 13:40:52

How to wrap text or variable in quotes, double quotes or single quotes in Phpstorm?

How to wrap text or variable in quotes, double quotes or single quotes in Phpstorm?
In other editors, you select a piece of text or code, call quotation marks and the selected section of code is wrapped in quotation marks. In a storm, this does not work like this, after pressing the keys that are responsible for the quotes, the text disappears, but the quotes remain.
How can I deal with this problem. Sometimes you need to change the quotes from single to double in the code and you have to run through the code, and this is terribly inconvenient. So far, I have not found any information on this question.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
D
DevMan, 2017-01-22
@serii81

Preferences -> Editor -> Smart Keys -> Surround Selection on typing quote or brace

J
jasonOk, 2017-01-22
@jasonOk

What about this option:

  1. Set cursor to text in quotes
  2. Alt+Enter
  3. Replace quotes

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question