When working with HTML identifiers, it is often necessary to create elements with the same identifier names, but with a different numeric index, for example:
<ul> <li id="item-|"></li> <li id="item-|"></li> <li id="item-|"></li> <li id="item-|"></li> <li id="item-|"></li> </ul>
"|" - Represents one of several cursors. Is there a way to insert numbers from 1-5?
You can use the String Manipulation plugin .
To generate numbers sequentially in multiple patterns :
, , 1, .
1
String Manipulation.
Increment/Decrement → Create sequence.
: PhpStorm 2016.2 String Manipulation 5.0.135.445.0.
emmet . - -
ul > li # item - $* 5 , :
<ul> <li id="item-1"></li> <li id="item-2"></li> <li id="item-3"></li> <li id="item-4"></li> <li id="item-5"></li> </ul>
There is a plugin called insertNums that does exactly what you are looking for. You can use it to insert a sequence of numbers at the cursor position.
It also allows you to define some parameters, such as the start number and the step between numbers and others.
Source: https://habr.com/ru/post/1618858/More articles:Adding a form input value to an action url as a path - javascriptОшибка развертывания в App Engine - вы должны войти в систему для выполнения этого действия - androidViolation of circular circular dependencies using template template parameters - c ++voiceXML, basic flow control. Goto tag not working - xmlPatternSyntaxException: Unexpected internal error near index 1 for `.split (File.separator)` under windows - javaIntellij-IDEA gradle templates - javaHow to remove and increase font size using WKWebView? - fontsRead a file with a partially unknown file name - c #WiX - install the same file in two different places - windows-installerEclipse - Unable to configure settings - eclipseAll Articles