android ctrl + 滑鼠左鍵直接開啟xml或Activity

來源:互聯網
上載者:User

標籤:android   style   io   color   ar   os   java   sp   檔案   

  1. 引用:
  2. 在eclipse裡,按ctrl鍵,滑鼠指向R.layout.order_edit1 的代碼時顯示(一般)  
  3.   
  4. Open declaration  
  5. Open declaration in layout/somelayoutfile.xml  
  6.   
  7.   
  8. 所以預設會開啟R.java  
  9.   
  10. 我用的ADT17  卻是反的  
  11. Open declaration in layout/somelayoutfile.xml  
  12. Open declaration  
  13.   
  14. 所以預設會開啟xml檔案  
  15.   
  16. 這個有沒有辦法設定  
  17. 因為我升級ADT20的時候,又變成  
  18. Open declaration  
  19. Open declaration in layout/somelayoutfile.xml  
  20.   
  21. 現在ctrl+click不能直接開啟xml檔案,非常鬱悶  
  22. 有什麼辦法能  
  23. ctrl+click直接開啟xml檔案???  
  24. 解決辦法:
  25. 設定方法:window-->preferences-- >General-->Editors-->Text Editors-->hyperlink.
    將上面一個Open Declaration取消勾選,即可。
  26. 我自己試過,非常管用,但隨之而來的問題是 ctrl + 滑鼠左鍵點擊Activity時不會跳轉到Activity中,我的解決辦法是把window-->preferences-- >General-->Editors-->Text Editors-->hyperlink.
    將上面一個Open Declaration再點擊勾選上,即可。
  27. 不知大家有沒有可以解決兩種問題並且不衝突的辦法呢,如果有請及時告知,不勝感激!

android ctrl + 滑鼠左鍵直接開啟xml或Activity

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.