Well, It seems that there are no way to define a new comment style in IntelliJ IDEA. But I found a workaround by using the Live Template
functionality.
You can create a live template for parser-level comment blocks and then invoke it. Follow the following path:
File
-> Settings
-> Editor
-> Live Templates
-> HTML/XML
-> ADD
Copy and paste the following live-template to the Template text, and choose suitable abbreviation and description:
<!--/* $SELECTION$ */-->
There are two ways to use this live template
Type PC
and then press the Tab, IntelliJ automatically creates a parser-level comment block.
Mark-up the desired codes or texts and then press Ctrl + Alt + J, and then from the shown pop-up menu you can select the parser-level comment block option.
Unfortunately you cannot set any Keymaps (shortcuts) for your Live-Templates.
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…