eclipse注释多行代码的操作教程
时间:2022-10-26 17:32
对才使用eclipse的小伙伴而言,注释多行代码还有点难度,那么该怎么办呢?下面就是小编带来的eclipse注释多行代码的操作教程。不要错过哦!
eclipse注释多行代码的操作教程
方法一:使用Ctrl+/快捷键
在Eclipse中拖动鼠标,选中需注释的代码,通常为连续多行代码。

按住Ctrl+/快捷键。

会发现所选代码被“//”注释掉。当调试完后,可再次按住Ctrl+/快捷键打开注释。

方法二:使用Ctrl+Shift+C快捷键
在eclipse中拖动鼠标,选中需注释的代码。

按住Ctrl+Shift+C快捷键。

会发现所选代码被“//”注释掉。当调试完后,可再次按住Ctrl+Shift+C快捷键打开注释。

方法三:使用Ctrl+Shift+/快捷键
在eclipse中拖动鼠标,选中需注释的代码。

按住Ctrl+Shift+/快捷键。

会发现所选代码被“/* */”注释掉。

当调试完后,可按住Ctrl+Shift+快捷键打开注释。

各位小伙伴们,看完上面的精彩内容,都清楚eclipse注释多行代码的操作方法了吧!