Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
在我的 Sublime Text 2中,自动完成在没有结束标记(?>)的 php 文件中不起作用,但是当我给出结束标记时它起作用。
?>
由于避免关闭标签以消除文件末尾的意外空格或其他换行符是一种好习惯,因此最好不使用关闭标签。
有没有人有解决方案?
在您的崇高User/Preferences.sublime-settings文件中添加:
{ "auto_complete_selector": "source, text", }
即使没有关闭 PHP 标记,这也将启用自动完成。