简体   繁体   English

Intellij热键/快捷方式,它将文本转换为两个xml / html元素,例如aaaaa到<aaaaa></aaaaa>

[英]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.

相关问题 对其他扩展名(例如DITA,HTML)的文件执行intelliJ中的XSLT转换 - perform XSLT Transform in intelliJ on files with other extension (e.g. DITA, HTML) IntelliJ IDE(IDEA,PhpStorm,WebStorm):在“更改日志”工具窗口中聚焦“过滤器”字段的快捷方式 - IntelliJ IDE (IDEA, PhpStorm, WebStorm): Shortcut for focusing Filter field in e.g. Change Log tool window Intellij IDEA:如何查看 class(例如 Color.html)的 javadoc 的 *整个页面*? - Intellij IDEA: How to view *entire page* of javadoc for a class (e.g. Color.html)? 如何通过 IntelliJ 导出运行配置,例如 maven 配置 - How to export by IntelliJ the run configuration e.g. maven configuration 局部变量是冗余的 JetBrains IDE(例如 IntelliJ IDEA) - Local variable is redundant JetBrains IDEs (e.g. IntelliJ IDEA) intellij-每个模块/项目的按键映射/热键/快捷方式 - intellij - keymap / hotkey / shortcut per module / project Intellij“查找操作”快捷方式/热键在 Windows 上不起作用 - Intellij “Find Action” shortcut / hotkey not working on Windows IntelliJ - 是否可以向 controller 类的所有方法添加自定义注释,例如 @SecurityCheck? - IntelliJ - is it possible to add custom annotation e.g. @SecurityCheck to all methods of a controller classes? 如何在用 Kotlin 编写的 Intellij IDEA Gradle 插件项目中包含 Kotlin PSI 类(例如 KtClass)? - How to include Kotlin PSI classes (e.g. KtClass) in Intellij IDEA Gradle plugin project written in Kotlin? 在JetBrains IDE(例如CLion,IntelliJ)中,外部工具无法使用通配模式 - In JetBrains IDEs (e.g. CLion, IntelliJ), external tools cannot use globbing patterns
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM