[英]Intellij hotkey / shortcut that will transform text into two xml / html elements e.g. aaaaa into <aaaaa></aaaaa>
I accidentally pressed some buttons and magically 我不小心按下了一些按钮
aaaaa
was transformed into <aaaaa></aaaaa>
while editing a PHP file. 在编辑PHP文件时,
aaaaa
被转换为<aaaaa></aaaaa>
。 I cannot reproduce the hotkey though. 我无法重现热键。
Is there a way to find this specific hotkey? 有没有办法找到这个特定的热键? pretty usefull imho
非常有用的恕我直言
If you're editing something xml-ish then you can simply press tab and IntelliJ will turn the previous word into a tag as you describe. 如果您正在编辑xml-ish内容,则只需按Tab键,IntelliJ就会将前一个单词变成您所描述的标签。
In your example, type aaaaa
tab and you'll get <aaaaa></aaaaa>
as a result. 在您的示例中,键入
aaaaa
选项卡 ,结果为<aaaaa></aaaaa>
。
AFAIK: this works in html, xml, and jsp, but may also work in other places AFAIK:这适用于html,xml和jsp,但也可以在其他地方使用
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.