Ruby on rails indentation

时间:2016-03-17 07:19:02

标签: indentation

这可能是一个愚蠢的问题,但我需要一些帮助,因为我无法找到答案。

我在ROR中缩进了一些代码,后来我删除了上层并希望将其移回,但我无法找到快捷方式,因为它有很多代码行......

例如: 原本

if abc
  if def
    some code
    some code
   end
end

但现在

if def
  some code
  some code
end

1 个答案:

答案 0 :(得分:1)

选择要突出显示的文本,然后按Shift-Tab

文档的keybindings页面中的信息:https://docs.c9.io/docs/keybindings