【问题标题】:Does Intellij have an auto replace feature like Toad?Intellij 是否具有像 Toad 这样的自动替换功能?
【发布时间】:2019-03-19 12:26:36
【问题描述】:

Intellij 是否有类似Toadauto replace 功能?

键盘:ss + spacebar ==> select * from

【问题讨论】:

    标签: intellij-idea editor


    【解决方案1】:

    IntelliJ 有 live templates

    例如输入以下代码并将光标放在大括号内:

    public class MyClass {
        // put cursor under this line
    
    }
    

    现在输入psvm并点击TAB,将出现以下内容

    public class MyClass {
        // put cursor under this line
        public static void main(String[] args) {
    
        }
    }
    

    有很多实时模板。这个例子中的意思是“public static void main”(psvm)——你可以自己研究它们。请注意,许多取决于上下文。

    IntelliJ 文档:Live Templates

    【讨论】:

    • 嗨,太好了,你能告诉我 System.out.println() 的捷径是什么吗?
    • 试试souttab
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2018-02-14
    • 1970-01-01
    • 2023-03-20
    • 2020-07-21
    • 2018-03-31
    • 2012-10-31
    相关资源
    最近更新 更多