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
auto surround selected word with quotes stopped working for php #6889
Comments
@ChazyTheBest Did you install any PHP related extensions? Surrounding with quotes is disabled in PHP comments and strings. Is that maybe what you see? |
The only feature that doesn't come built-in and that I need is ftp on save, so I have ftp-sync installed, and nothing more than I'm aware of. I'm not sure that feature is disabled for comments and strings for php at all, I can surround any selected text in php code, when VS Code wants to ofc. Do you need visual proof? I could make a video or gif, I can surround any selected text with quotes. But the problem still remains, when I close and open VS Code again the feature stops working completely for php. Well, the truth is that it's not the next time I open VS Code and also does not involve the settings. I've just enabled my settings (by renaming the file) and restarted, and it worked then I restarted again and it was still working but the third time it stopped working. Could it be something wrong with my OS or configs? (Not a VS Code problem?). It's a very strange behavior... |
A screenshot or animated gif would would be great. I have no clue so far what it could be. I tried to reproduce what you are seeing, but for me surrounding with quotes works for me in PHP. |
I also have no clue why is it acting like that. It's like "now I want to work, but the next time I start... who knows"? :P I'm creating the gif file. EDIT: convert is taking a filetime to reduce the filesize... |
@ChazyTheBest Thanks a lot, now I see it too. The problem was the merging of the settings in php.configuration.ts and the settings is code. |
You're welcome, I'm glad I could help. |
I don't know what happened but yesterday I was writing some code and when I selected a word and pressed ' the word was quoted, now the word is replaced by one ' instead.
Brackets are still auto closing though...
If I change the language mode from php to another, like c++, then it'll work but if I change it back it won't...
If I rename my settings file (the one inside .vscode) and I restart vscode then it'll work, but if I restart again it won't. Strange behavior... I can reproduce this (renaming and restarting).
These are my settings:
The text was updated successfully, but these errors were encountered: