我沒有太多的Eclipse快捷方式知道。Eclipse Java代碼格式
我從一些鏈接複製的代碼,我在Eclipse靛藍粘貼,但它是未來像
"public String doLogin() throws ApplicationException{ long executionStartTime = System.cu... }"
我想它格式化Java的方式一樣
public String doLogin() throws ApplicationException{
long executionStartTime = System.cu...
}
我google一下,發現幾快捷方式如:
「Shift + Tab」,「Ctrl + I」,「Ctrl + Shift + F」。但沒有給我我想要的行爲。
是否有我需要添加自定義格式化程序或我期待更多。
你是正確的,我不得不映射以及存在,但地方我的鑰匙沒有工作。當我嘗試「源>格式」時,它給了我需要的行爲。 – Jayesh