我的功能有问题"使用"在Sublime Text 3(版本:3114)中。
我正在使用框架Laravel,当我想编辑我的文件
... \应用\ HTTP \控制器\ PagesController.php:
<?php
namespace App\Http\Controllers;
use Illuminate\Http\Request;
use App\Http\Requests;
class PagesController extends Controller
{
public function contact(){
return 'KONTAKT';
}
public function about(){
return 'O NAS';
}
}
当我点击SAVE然后消失了我的部分代码,我有这个代码:
<?php
namespace App\Http\Controllers;
class PagesController extends Controller {
public function contact() {
return 'KONTAKT';
}
public function about() {
return 'O NAS';
}
}
我没有这两行:
use Illuminate\Http\Request;
use App\Http\Requests;
为什么会这样?可以以某种方式解决这个问题吗?
P.S我记得Symfony也发生了同样的事情。我不得不使用不同的编辑器(Notepad ++)
这是我的插件列表:
- &#34; CSSLint&#34;,
- &#34; DocBlockr&#34;,
- &#34;埃米特&#34;,
- &#34; FTPSync&#34;,
- &#34; HTML-CSS-JS Prettify&#34;,
- &#34; HTML5&#34;,
- &#34; JavaScript完成&#34;,
- &#34; jQuery和#34;,
- &#34; JsFormat&#34;,
- &#34; JSHint&#34;,
- &#34; LiveReload&#34;,
- &#34; MySQL Snippets&#34;,
- &#34; Nettuts + Fetch&#34;,
- &#34; Package Control&#34;,
- &#34; PHP Companion&#34;,
- &#34; PHP完成工具包&#34;,
- &#34; PHP MySQLi连接&#34;,
- &#34; PHP Zend Framework 2 Helper&#34;,
- &#34; Phpcs&#34;,
- &#34; PHPDoc的&#34;,
- &#34; phpfmt&#34;,
- &#34; PhpNamespace&#34;,
- &#34; PHPUnit的&#34;,
- &#34; PHPUnit Completions&#34;,
- &#34;搜索WordPress Codex或QueryPosts&#34;,
- &#34; SublimeCodeIntel&#34;,
- &#34; SublimeLinter&#34;,
- &#34; SublimeLinter-的contrib-bootlint&#34;,
- &#34; SublimeLinter-csslint&#34;,
- &#34; SublimeLinter-HTML的整洁&#34;,
- &#34; SublimeLinter-jshint&#34;,
- &#34; SublimeLinter-PHP&#34;,
- &#34; SublimeLinter-phpcs&#34;,
- &#34; SublimeLinter-phplint&#34;,
- &#34; WordPress的&#34;,
- &#34; WordPress开发人员资源&#34;,
- &#34; WordpressDev&#34;
醇>