美文网首页
程序员都在用的 IDEA 插件(不断更新)

程序员都在用的 IDEA 插件(不断更新)

作者: Switch_vov | 来源:发表于2020-05-24 14:33 被阅读0次

    IDEA一些不错的插件分享

    [TOC]

    插件集合

    CamelCase

    驼峰式命名和下划线命名互相转换。使用方法:选中要变化的地方,使用快捷键Shift+Alt+U即可。

    Translation

    翻译插件,现支持Google翻译、有道翻译。

    LiveEdit

    用于调试样式,更改样式,chrome浏览器自动对应地变化出更改后的效果,连刷新都不用
    IDEA已经集成

    MarkDown Navigator

    非常好用的编辑器,需要破解(或购买激活)才能使用

    Jrebel

    热部署插件,需要破解(或购买激活)才能使用

    CheckStyle-IDEA

    提供代码规范检查(可选安装,阿里巴巴的规范挺不错的)

    Alibaba Java Coding Guidelines

    阿里巴巴Java规范插件
    Git:https://github.com/alibaba/p3c/tree/master/idea-plugin

    Ideavim

    神级编辑器,熟悉vim编辑器的可以安装使用(个人不用)

    Maven Helper

    Maven依赖分析等功能

    FindBugs-IDEA

    静态分析工具

    GsonFormat

    json->object

    Key promoter X

    显示点击某个功能选项的快捷键(如果有的话)

    .ignore

    .ignore文件支持

    JVM Debuger Memory View

    Debug时,查看内存中对象
    IDEA已经集成

    CMD Support

    CMD文件支持

    Batch Scripts Support

    Windows批处理脚本支持

    BashSupport

    Linux Bash支持

    Docker integration

    Docker支持

    JMH plugin

    JMH基准测试支持插件

    ANSI Highlighter

    log文件高亮支持

    Ideolog

    快速跳转到日志文件中Error位置等

    RestfulToolkit

    Restful工具集,支持SpringMVC下的URL导航到对应方法等。

    CodeGlance

    预览文本,参见sublime

    Lombok plugin

    Lombok必备。GitHub

    activate-power-mode

    装逼神器,不解释


    activate-power-mode.gif

    Background Image Plus

    设置背景图片

    Iedis

    Redis客户端(收费)

    Mongo Plugin

    MongoDB客户端

    VisualVM Launcher

    运行时启动visualvm,jvm调优

    GenerateAllSetter

    生成一个对象所有set方法调用并赋上默认值

    MyBatisCodeHelperPro

    mybatis代码自动生成插件(收费)

    Easy Code

    基于IntelliJ IDEA开发的代码生成插件,支持自定义任意模板(Java,html,js,xml)。

    IDEA Mind Map

    IDEA 思维导图工具

    SequenceDiagram

    生成方法调用的时序图

    Intellij IDEA 显示调用时序图插件 SequenceDiagram

    Material Theme UI

    眼睛舒适的主题

    String Manipulation

    字符串处理,提供驼峰、下划线,base64、md5

    JUnit Generator V2.0

    快捷生成单元测试类

    设置方法

    1. junit-generator.png
    2. Output Path:${SOURCEPATH}/../../test/java/${PACKAGE}/test/${FILENAME}

    3. Default Template:Junit 4

    4. Junit 4内容

    ########################################################################################
    ##
    ## Available variables:
    ##         $entryList.methodList - List of method composites
    ##         $entryList.privateMethodList - List of private method composites
    ##         $entryList.fieldList - ArrayList of class scope field names
    ##         $entryList.className - class name
    ##         $entryList.packageName - package name
    ##         $today - Todays date in MM/dd/yyyy format
    ##
    ##            MethodComposite variables:
    ##                $method.name - Method Name
    ##                $method.signature - Full method signature in String form
    ##                $method.reflectionCode - list of strings representing commented out reflection code to access method (Private Methods)
    ##                $method.paramNames - List of Strings representing the method's parameters' names
    ##                $method.paramClasses - List of Strings representing the method's parameters' classes
    ##
    ## You can configure the output class name using "testClass" variable below.
    ## Here are some examples:
    ## Test${entry.ClassName} - will produce TestSomeClass
    ## ${entry.className}Test - will produce SomeClassTest
    ##
    ########################################################################################
    ##
    #macro (cap $strIn)$strIn.valueOf($strIn.charAt(0)).toUpperCase()$strIn.substring(1)#end
    ## Iterate through the list and generate testcase for every entry.
    #foreach ($entry in $entryList)
    #set( $testClass="${entry.className}Test")
    ##
    package ${entry.packageName}.test;
    
    import org.junit.Test;
    import org.junit.Before;
    import org.junit.After;
    
    /**
    * ${entry.className} Tester.
    *
    * @author Switch
    * @version 1.0
    */
    public class $testClass {
    
        @Before
        public void init() throws Exception {
            
        }
    
        @After
        public void destroy() throws Exception {
            
        }
    
        @Test
        public void test${entry.className}() {
            
        }
    
        #foreach($method in $entry.methodList)
        /**
        *
        * Method: $method.signature
        *
        */
        @Test
        public void test#cap(${method.name})() throws Exception {
            
        }
        
        #end
    
        #foreach($method in $entry.privateMethodList)
        /**
        *
        * Method: $method.signature
        *
        */
        @Test
        public void test#cap(${method.name})() throws Exception {
            #foreach($string in $method.reflectionCode)
            $string
            #end
        }
    
    #end
    }
    #end
    

    分享并记录所学所见

    相关文章

      网友评论

          本文标题:程序员都在用的 IDEA 插件(不断更新)

          本文链接:https://www.haomeiwen.com/subject/vdfjahtx.html