分享個人最喜愛的幾款idea插件,讓你的bug寫的更加得心應手

 

插件集合

CamelCase

Translation

LiveEdit

MarkDown Navigator

Jrebel

CheckStyle-IDEA

Alibaba Java Coding Guidelines

Ideavim

Maven Helper

FindBugs-IDEA

GsonFormat

Key promoter X

.ignore

JVM Debuger Memory View

CMD Support

Batch Scripts Support

BashSupport

Docker integration

JMH plugin

ANSI Highlighter

Ideolog

RestfulToolkit

CodeGlance

Lombok plugin

activate-power-mode

Background Image Plus

Iedis

Mongo Plugin

VisualVM Launcher

GenerateAllSetter

MyBatisCodeHelperPro

Easy Code

IDEA Mind Map

SequenceDiagram

Material Theme UI

String Manipulation

JUnit Generator V2.0

設置方法

插件集合

CamelCase

駝峯式命名和下劃線命名互相轉換。使用方法:選中要變化的地方,使用快捷鍵Shift+Alt+U即可。

Translation

翻譯插件,現支持Google翻譯、有道翻譯。

LiveEdit

用於調試樣式,更改樣式,chrome瀏覽器自動對應地變化出更改後的效果,連刷新都不用
IDEA已經集成

MarkDown Navigator

非常好用的編輯器,需要破解(或購買激活)才能使用

Jrebel

熱部署插件,需要破解(或購買激活)才能使用

CheckStyle-IDEA

提供代碼規範檢查(可選安裝,阿里巴巴的規範挺不錯的)

Alibaba Java Coding Guidelines

阿里巴巴Java規範插件
需要該插件的可以添加公衆號:程序零世界

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

tt.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
image.png

Material Theme UI

眼睛舒適的主題

String Manipulation

字符串處理,提供駝峯、下劃線,base64、md5

JUnit Generator V2.0

快捷生成單元測試類

設置方法

1.image.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

​歡迎關注公衆號:Java架構師聯盟,每日更新技術好文

 

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章