Skip to Content
Android Developer Tools深入精要
book

Android Developer Tools深入精要

by Mike Wolfson
July 2014
Intermediate to advanced
248 pages
5h 19m
Chinese
GoTop Information, Inc.
Content preview from Android Developer Tools深入精要
82
|
第六章:使用
Android Studio
開發
重構與產生程式碼
許多在
Eclipse
中重要的程式碼重構選項(參考第
66
頁「重構
refactor
選單」)也可
用在
Android Studio
上。我建議閱讀表
6-5
裡的「將它重構…」選項,以及其他在
Refactor
」功能表裡的選項。學會常用的重構例如自動產生
getters
setters
將可以
節省許多時間,且能確保產生符合標準規範的程式碼。
6-5
重構選項
動作
Mac OS X
快速鍵
Windows\Linux
快速鍵
將它重構…
Ctrl + T
(將游標移至感興趣的
地方之後)
Ctrl + T
(將游標移至感興趣的
地方之後)
重新命名
Shift + F6
(將檔案、資源、變
數任何東西重新命名)
Shift + F6
(將檔案、資源、變
數任何東西重新命名)
產生:新增建構子、檔案、
layout
Getters/Setters
Override
函數、
版權
檔案裡
Ctrl + N
檔案裡
Ctrl + N
其他快速鍵
6-6
顯示其他我常用的快速鍵。
6-6
其他有用的快速鍵
動作
Mac OS X
快速鍵
Windows\Linux
快速鍵
前往行號
Command + L Ctrl + L
格式化程式碼
Alt + Command + L Alt + Ctrl + L
執行/偵錯
Ctrl + R
D Ctrl + R
D
隱藏面板
確認面板是被選取的,則按下
Shift + ESC
確認面板是被選取的,則按下 ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.

Read now

Unlock full access

More than 5,000 organizations count on O’Reilly

AirBnbBlueOriginElectronic ArtsHomeDepotNasdaqRakutenTata Consultancy Services

QuotationMarkO’Reilly covers everything we've got, with content to help us build a world-class technology community, upgrade the capabilities and competencies of our teams, and improve overall team performance as well as their engagement.
Julian F.
Head of Cybersecurity
QuotationMarkI wanted to learn C and C++, but it didn't click for me until I picked up an O'Reilly book. When I went on the O’Reilly platform, I was astonished to find all the books there, plus live events and sandboxes so you could play around with the technology.
Addison B.
Field Engineer
QuotationMarkI’ve been on the O’Reilly platform for more than eight years. I use a couple of learning platforms, but I'm on O'Reilly more than anybody else. When you're there, you start learning. I'm never disappointed.
Amir M.
Data Platform Tech Lead
QuotationMarkI'm always learning. So when I got on to O'Reilly, I was like a kid in a candy store. There are playlists. There are answers. There's on-demand training. It's worth its weight in gold, in terms of what it allows me to do.
Mark W.
Embedded Software Engineer

You might also like

Android 高效能多執行緒

Android 高效能多執行緒

Anders Goransson
深入淺出 jQuery

深入淺出 jQuery

Ryan Benedetti, Ronan Cranley
HTML5 錦囊妙計

HTML5 錦囊妙計

Christopher Schmitt, Kyle Simpson

Publisher Resources

ISBN: 9789863470861