用于评论jsp,xml代码的Eclipse快捷方式 [英] Eclipse shortcut for commenting jsp, xml code

查看:177
本文介绍了用于评论jsp,xml代码的Eclipse快捷方式的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在IDEA中,我们可以使用相同的键盘快捷键组合在java以及html,jsp,xml文件中注释/取消注释行。我试图在eclipse中这样做,但是无法在html,jsp和xml文件中注释掉行。有没有办法在Eclipse中做到这一点?另外我想知道批量注释是否也可用于非java文件。

In IDEA, we can comment/uncomment lines in java as well as html,jsp, xml files with the same keyboard shortcut combination. I tried doing that in eclipse but was not able to comment out lines in html,jsp and xml files. Is there a way to do it in Eclipse? Also I would like to know whether bulk comment is also available for non-java files.

推荐答案

我使用 Shift + Ctrl + / 到XML和JSP文件中的添加块注释(在行级别或选定的块中工作) 。

I use Shift+Ctrl+/ to Add Block Comment in both XML and JSP files (works at the line level or for a selected block).

如果您正在寻找特定的快捷方式,可以使用 Shift + Ctrl + < kbd> L 到显示密钥辅助(即命令及其绑定)。

Just in case, if you are looking for a particular shortcut, you can use Shift+Ctrl+L to Show Key Assist (i.e. the Commands and their Bindings).

这篇关于用于评论jsp,xml代码的Eclipse快捷方式的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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