18
14

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

Android Studioの未使用コード削除手順

Posted at

概要

Android Studioで未使用コード(不要なコード)を消すための手順です。

簡易まとめ

  • Analyze > Inspect Code... > Inspection scopeで検査範囲選択してOKボタン
  • Declaration redundancy > Unused declaration > 対象を選択 > 右クリックメニューのSafe delete実行

前提

OS: OS X El Capitan
Android Studio version: 2.1.3

手順

コード検査

Analyze > Inspect Code... > Inspection scopeで検査範囲選択してOKボタン
Screen Shot 2016-09-16 at 18.54.32.png
大きいprojectだと時間がかかるので適当な範囲に絞る

コード削除

Declaration redundancy > Unused declaration > 対象を選択
Screen Shot 2016-09-16 at 18.57.32.png

右クリックメニューのSafe delete実行
Screen Shot 2016-09-16 at 18.58.15.png

18
14
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
18
14

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?