phpstorm - PhpStorm中多行的自动递增编号

标签 phpstorm selection increment emmet

如何在PhpStorm中实现自动选择多项选择的增量。如果我选择了这样的行或用多个光标标记

my line das
my line asd
my line sda
my line poi
my line uio
my line kjy


我想让它们像这样自动编号

my line das 1
my line asd 2 
my line sda 3 
my line poi 4
my line uio 5
my line kjy 6


Emmet或任何其他插件对此有任何简单的方法吗?

最佳答案

更新:此功能现在在String Manipulation插件v4.5中可用

旧:远非理想,但您可以使用Duplicate and increment插件中的String Manipulation操作。这很容易做到,并且可以完成工作:

enter image description here

为该操作添加快捷方式,或多次执行该操作以增加包含数字的行。

到目前为止,没有PhpStorm插件允许您完全描述。

可能是create one的场合!

关于phpstorm - PhpStorm中多行的自动递增编号,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/36445288/

相关文章:

javascript - 如何使用 javascript/jquery 增加点击次数?

PHPStorm - 如何设置实时编辑

ide - 多个数据库编辑器选项卡 phpStorm

debugging - 变量使用处的 PhpStorm 调试器断点

WinForms 数值向上向下 : Is there a way to read the info about text selection?

c - gtklist[c代码] : how to get the selection of a GtkList

java - 替换并增加 Android 应用程序文件名中的数字

phpstorm - 在 PhpStorm 的 HTML 标签中禁用样式参数内容的隐藏

javascript - 无法在 Chrome 扩展程序上返回选定的文本

javascript - 函数已定义但仍未定义