如何在 Android Studio 中创建更多类似于 TODO 的笔记,例如 CHECK 或 TEST? [英] How to create more notes like TODO in Android Studio, for example CHECK or TEST?

查看:41
本文介绍了如何在 Android Studio 中创建更多类似于 TODO 的笔记,例如 CHECK 或 TEST?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有谁知道如何在 Android Studio 中创建类似于TODO"的新标签?我的意思是,它们也会突出显示并出现在问题列表中.如果您有任何提示或建议,我将不胜感激.

Does anybody know how to create new tags similar to the "TODO" in Android Studio? I mean so that they would highlight as well and appear in the list of issues. I'd appreciate any tip or suggestion.

推荐答案

是的,这是可能的.Android Studio 基于 IntelliJ,您可以在此处找到有关如何添加新模式的说明:

Yes, this is possible. Android Studio is based on IntelliJ and you can find a instruction on how to add a new pattern here:

https://www.jetbrains.com/help/idea/defining-todo-patterns-and-filters.html

来自链接:

  1. 在 TODO 工具窗口中,单击 Filter TODO Items 图标(Filter TODO Items),然后单击 Edit Filters 以打开 TODO 对话框.

  1. In the TODO tool window, click the Filter TODO Items icon (Filter TODO Items) and then click Edit Filters to open the TODO dialog.

要为 OPTIMIZE 项添加模式,请单击 TODO 对话框的模式部分中的添加图标 (Add),然后键入以下模式:\boptimize\b.* 然后单击确定以保存新的模式.

To add a pattern for the OPTIMIZE items, click the Add icon (Add) in the Patterns section of the TODO dialog, and type the following pattern: \boptimize\b.* Then click OK to save the new pattern.

要添加具有新模式的过滤器,请单击 TODO 对话框的过滤器"部分中的添加"图标 (Add),为新过滤器指定名称,然后选择要包含在此过滤器中的新模式.然后单击确定"以保存新过滤器.

To add a filter with the new pattern, click the Add icon (Add) in the Filters section of the TODO dialog, specify a name for the new filter, and select the new pattern to be included in this filter. Then click OK to save the new filter.

单击确定"以应用待办事项"对话框中的更改.

Click OK to apply changes in the TODO dialog.

要应用新的过滤器,在 TODO 工具窗口中,单击 Filter TODO Items 图标(Filter TODO Items)并选择必要的过滤器.

To apply the new filter, in the TODO tool window, click the Filter TODO Items icon (Filter TODO Items) and select the necessary filter.

这篇关于如何在 Android Studio 中创建更多类似于 TODO 的笔记,例如 CHECK 或 TEST?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆