admin管理员组文章数量:1022670
In VS Code, how can I make variable names auto-complete without typing the $ symbol? For example, when I type data, it should automatically suggest and complete it as $data. When I used IntelliJ IDEA before, it worked like this. How can I achieve the same behavior in VS Code?
I have already installed PHP Intelephense ext
In VS Code, how can I make variable names auto-complete without typing the $ symbol? For example, when I type data, it should automatically suggest and complete it as $data. When I used IntelliJ IDEA before, it worked like this. How can I achieve the same behavior in VS Code?
I have already installed PHP Intelephense ext
Share Improve this question asked Nov 28, 2024 at 10:07 CamusLCamusL 1 2- 2 How should it know you do not mean a keyword instead of a variable? – Markus Zeller Commented Nov 28, 2024 at 10:10
- 1 @MarkusZeller In most languages, variables don't start with a special character, yet auto-completion does work. – Olivier Commented Nov 28, 2024 at 10:21
1 Answer
Reset to default 0It seems PHP IntelliSense extension works better and might be more suitable in your case than PHP Intelephense extension. At least from its homepage, it seems it could help you autocomplete without $. There are couple of examples on how to using the extension.
In VS Code, how can I make variable names auto-complete without typing the $ symbol? For example, when I type data, it should automatically suggest and complete it as $data. When I used IntelliJ IDEA before, it worked like this. How can I achieve the same behavior in VS Code?
I have already installed PHP Intelephense ext
In VS Code, how can I make variable names auto-complete without typing the $ symbol? For example, when I type data, it should automatically suggest and complete it as $data. When I used IntelliJ IDEA before, it worked like this. How can I achieve the same behavior in VS Code?
I have already installed PHP Intelephense ext
Share Improve this question asked Nov 28, 2024 at 10:07 CamusLCamusL 1 2- 2 How should it know you do not mean a keyword instead of a variable? – Markus Zeller Commented Nov 28, 2024 at 10:10
- 1 @MarkusZeller In most languages, variables don't start with a special character, yet auto-completion does work. – Olivier Commented Nov 28, 2024 at 10:21
1 Answer
Reset to default 0It seems PHP IntelliSense extension works better and might be more suitable in your case than PHP Intelephense extension. At least from its homepage, it seems it could help you autocomplete without $. There are couple of examples on how to using the extension.
本文标签: phpHow to autocomplete variables in VS Code without typing thesymbolStack Overflow
版权声明:本文标题:php - How to auto-complete variables in VS Code without typing the $ symbol? - Stack Overflow 内容由热心网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://it.en369.cn/questions/1745516943a2154114.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论