小编GHo*_*per的帖子

在 vscode 中突出显示未使用的变量

有什么方法可以突出显示 vscode 中未使用的 php 变量吗?

<?php
$foo = 'a';
$bar = 'b'; // I want the IDE mark this somehow

$foo = 'c';
?>
Run Code Online (Sandbox Code Playgroud)

"editor.showUnused": true在配置文件里有。另外,我尝试了几个intellisense扩展,但没有帮助。

php visual-studio-code

9
推荐指数
1
解决办法
5719
查看次数

标签 统计

php ×1

visual-studio-code ×1