5

在 PhpStorm 中,当处理软/智能标签时,我可以通过一键或组合跳回上一个制表位吗?

我尝试了 Shift+Tab,但它并没有跳回制表位,而是按 softtab 的大小跳回。

这是一个软制表符为 4 个空格的示例:

Notabs (0 spaces)
••••Tabstop1 (1 Tab)
••••••••Tabstop2 (2 Tabs)
••••••* My cursors is here in between Tabstop 1 + 2
••••••••<- another Tab press moves me to Level2
••••<- I want to get here, back to Level1 (in one key press)
••<- Shift+Tab moves me here (back 4 full spaces, a full soft tab)

回想起来,我可以忍受只退格 3 到 1 次,并在遍历制表位或更多距离时使用 Shift+Tab,但我只是好奇是否与 Tab 键的工作方式直接类比 un-标签的东西。

4

1 回答 1

9

有一个小组合:按Tab,然后按Shift+ Tab

它不是一键按下,而是与您要跳过的空格数(1或2或3)无关。无需计算您需要多少退格:每次按 2 次。

于 2013-02-07T07:39:52.673 回答