简体   繁体   English

是否有任何键盘快捷键可在IntelliJ Idea的课堂上添加@SuppressWarnings?

[英]Is there any keyboard shortcut to add @SuppressWarnings on class in IntelliJ Idea?

Is there any shortcut for @SuppressWarnings({"unused", "WeakerAccess"}) @SuppressWarnings({"unused", "WeakerAccess"})是否有任何快捷方式

Specially on java classes? 特别是在Java类上?

You could add a Live Template which you would then engage by typing the template short name and hitting TAB . 您可以添加一个实时模板 ,然后通过键入模板简称并点击TAB

Here's an example: 这是一个例子:

在此处输入图片说明

With this live template you can enter unused + TAB and IntelliJ will auto complete to @SuppressWarnings({"unused", "WeakerAccess"}) 使用此实时模板,您可以输入unused + TAB ,IntelliJ将自动完成到@SuppressWarnings({"unused", "WeakerAccess"})

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 在Intellij IDEA中运行maven目标的键盘快捷键? - Keyboard shortcut to run maven goals in Intellij IDEA? 在Intellij Idea中添加throws声明的快捷方式 - shortcut to add throws declaration in Intellij Idea 有什么方法可以自动将“此”关键字添加到Intellij Idea中的类字段吗? - Is there any way to add “this” key word automatically to class fields in Intellij Idea? IntelliJ IDEA @SuppressWarnings用于检查工具名称 - IntelliJ IDEA @SuppressWarnings for inspection with name of tool Intellij IDEA快捷方式如何添加新元素(例如,类或包)? - Intellij IDEA shortcut How to add new element (ex. class or package)? 任何方式(或快捷方式)自动导入 IntelliJ IDEA 中的类,如 Eclipse? - Any way (or shortcut) to auto import the classes in IntelliJ IDEA like in Eclipse? IntelliJ IDEA中取消注释javadoc的快捷方式 - Shortcut to uncomment javadoc in IntelliJ IDEA 如何使用键盘快捷键在 Intellij-IDEA 中显示(展开)隐藏(折叠)的代码? - How to show(unfold) the hidden(folded) code in Intellij-IDEA with keyboard shortcut? Intellij IDEA转到上一个方法快捷方式 - Intellij IDEA go to previous method shortcut MyEclipse中** intelliJ **想法的`Ctrl + D`快捷方式 - `Ctrl+D` shortcut of **intelliJ** idea in MyEclipse
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM