JWorld@TW the best professional Java site in Taiwan
      註冊 | 登入 | 全文檢索 | 排行榜  

» JWorld@TW » Java IDE » Eclipse  

按列印兼容模式列印這個話題 列印話題    把這個話題寄給朋友 寄給朋友   
reply to topicthreaded modego to previous topicgo to next topic
本主題所含的標籤
無標籤
作者 請問一下Eclipse 儲存設定
fanboy1016





發文: 11
積分: 0
於 2016-10-03 02:54 user profilesend a private message to userreply to postreply to postsearch all posts byselect and copy to clipboard. 
ie only, sorry for netscape users:-)add this post to my favorite list
小弟不知道改到什麼樣的設定
只要在class內按儲存的時候有些method順序就會自己排
害得我跟舊程式比對時超亂
有否大大知道是修改到什麼


fanboy1016 edited on 2016-10-03 02:58
reply to postreply to post
作者 Re:請問一下Eclipse 儲存設定 [Re:fanboy1016]
Ruffian1982





發文: 9
積分: 0
於 2016-10-03 07:31 user profilesend a private message to userreply to postreply to postsearch all posts byselect and copy to clipboard. 
ie only, sorry for netscape users:-)add this post to my favorite list
不小心點到?Sort Members?

http://stackoverflow.com/questions/854232/sorting-methods-in-eclipse

恢復方式
版控上 code → Sort Members排序
已異動 code → Sort Members排序

比對出差異部分,再將其加回 版控上code 就解決啦...

ps.比對的部分可以用工具作(UltraEdit, pspad etc.)


reply to postreply to post
作者 Re:請問一下Eclipse 儲存設定 [Re:Ruffian1982]
fanboy1016





發文: 11
積分: 0
於 2016-10-04 02:39 user profilesend a private message to userreply to postreply to postsearch all posts byselect and copy to clipboard. 
ie only, sorry for netscape users:-)add this post to my favorite list
抱歉不是,任何儲存動作都自動幫我排序
快被搞到起笑了Sad


reply to postreply to post
作者 Re:請問一下Eclipse 儲存設定 [Re:fanboy1016]
jimmy14

Give me J-Power !



發文: 787
積分: 3
於 2016-10-04 03:07 user profilesend a private message to userreply to postreply to postsearch all posts byselect and copy to clipboard. 
ie only, sorry for netscape users:-)add this post to my favorite list
看看是不是這個設定
http://stackoverflow.com/questions/15655126/how-to-auto-format-code-in-eclipse

Another option is to go to Window->Preferences->Java->Editor->SaveActions and check the Format source code option. Then your source code will be formatted truly automatically each time you save it.


reply to postreply to post
作者 Re:請問一下Eclipse 儲存設定 [Re:jimmy14]
fanboy1016





發文: 11
積分: 0
於 2016-10-04 06:09 user profilesend a private message to userreply to postreply to postsearch all posts byselect and copy to clipboard. 
ie only, sorry for netscape users:-)add this post to my favorite list
多謝大大,確實是這問題Smile
之前為了讓eclipse自動幫我format
亂調選到這個


reply to postreply to post
» JWorld@TW »  Java IDE » Eclipse

reply to topicthreaded modego to previous topicgo to next topic
  已讀文章
  新的文章
  被刪除的文章
Jump to the top of page

JWorld@TW 本站商標資訊

Powered by Powerful JuteForum® Version Jute 1.5.8