如何在android studio中为部分java代码着色?

时间:2018-04-23 11:26:16

标签: android android-studio colors androidstudio-settings

有一些方法我可以在我的代码的某些颜色部分(不是输出,实际代码)在android工作室中着色?

类似的东西:

 case R.id.buttonbackup:
            Toast.makeText(this, "first", Toast.LENGTH_SHORT).show();
            try {
                Toast.makeText(this, "before try", Toast.LENGTH_SHORT).show();
                BackUpContacts();
                DeleteAllContacts();

                Toast.makeText(this, "after try", Toast.LENGTH_SHORT).show();
            } catch (IOException e) {
                Toast.makeText(this, "EX", Toast.LENGTH_SHORT).show();
                e.printStackTrace();
                Toast.makeText(this,e.getStackTrace().toString() , Toast.LENGTH_SHORT).show();
            } catch (Exception e) {//this the part i want to color 
                e.printStackTrace();
            }

            break;

我想为捕获的所有部分着色。有办法做到这一点?

0 个答案:

没有答案