如何在PhpStorm IDE中注释多行? [英] How to comment multiple lines in PhpStorm IDE?
本文介绍了如何在PhpStorm IDE中注释多行?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我使用PhpStorm编辑Apache的PHP文件和配置文件.如何在选定的块上添加注释并设置符号注释? 例如,我想要
I use PhpStorm to edit PHP files and configuration files for Apache. How to comment on the selected block and set the symbol comment? I want,for example,
<Directory />
Options FollowSymLinks
AllowOverride None
Order deny,allow
Deny from all
</Directory>
到
#<Directory />
# Options FollowSymLinks
# AllowOverride None
# Order deny,allow
# Deny from all
#</Directory>
推荐答案
选择多行并使用带有行注释的注释(( Ctrl + /,可以在Settings | Keymap
中进行更改.)
Select multiple lines and use the Comment with Line Comment (Ctrl+/ in the default keymap on Windows, can be changed in Settings | Keymap
).
还有带有块注释的注释,适用于对代码块具有特殊样式注释的文件类型(不适用于.htaccess).
There is also Comment with Block Comment that works for file types that have special style comment for code blocks (not applicable for .htaccess).
这篇关于如何在PhpStorm IDE中注释多行?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文