如何配置 phpstorm 使 if 条件后的变量定义对齐

目标代码

if ($this->config->report->dailyreminder->bug) $bugs = $this->report->getUserBugs();
if ($this->config->report->dailyreminder->task) $tasks = $this->report->getUserTasks();
if ($this->config->report->dailyreminder->todo) $todos = $this->report->getUserTodos();
if ($this->config->report->dailyreminder->testTask) $testTasks = $this->report->getUserTestTasks();

要实现的对齐目标

if ($this->config->report->dailyreminder->bug)      $bugs = $this->report->getUserBugs();
if ($this->config->report->dailyreminder->task)     $tasks = $this->report->getUserTasks();
if ($this->config->report->dailyreminder->todo)     $todos = $this->report->getUserTodos();
if ($this->config->report->dailyreminder->testTask) $testTasks = $this->report->getUserTestTasks();

请问如何配置? 谢谢!

阅读 1.6k
撰写回答
你尚未登录,登录后可以
  • 和开发者交流问题的细节
  • 关注并接收问题和回答的更新提醒
  • 参与内容的编辑和改进,让解决方法与时俱进
推荐问题