How could I edit html tables in PhpStorm?

821 Views Asked by At

I am using PhpStorm to edit html and php. Great editor but I can't find useful features:

  1. How could I insert row and column in html table (in html file).
  2. How could I delete row or column in html table (in html file)

Or there is no ways to do that?

1

There are 1 best solutions below

1
On

To insert new row to HTML table write

<tr><td></td>...<td></td></tr>

To delete row, select all code between matching <tr> and </tr> (including these tags), find delete button and press to delete selected text.


You can ALT + CLICK to place multiple markers.
CTRL + D will copy same line to below.
You can use CTRL + F to replace text using RegExp.

Other than that, use PHP to generate table in loop instead of manual writing.


You Will ALWAYS have to deal with code manipulation by hand