当前位置: 动力学知识库 > 问答 > 编程问答 >

sublimetext2 - How do you cycle through multiple cursors in Sublime Text like you would with placeholders?

问题描述:

Is there a way to tab through multiple cursors like you can with placeholders?

Having those cursors placed you would:

  1. type "index"
  2. tab
  3. type "products"
  4. tab

网友答案:

You could create bookmarks with the multiple cursors (ctrl+f2 or cmd+f2 by default I think). Then, you could return to a single cursor (escape). After you enter the content on a particular line, you could then move to the next bookmark (f2 by default). Of course, those are with the default keybindings. You can always rebind them to something more comfortable than f2.

网友答案:

There is a plugin for that and more. https://packagecontrol.io/packages/MultiEditUtils

You can add this line to your User Keybindings for custom hotkey:

{ "keys": ["alt+d"], "command": "selection_fields" },
分享给朋友:
您可能感兴趣的文章:
随机阅读: