I'm using IDEA 2019.3 Ultimate edition which ships with markdown support. I'm trying to insert a table like this:
| Key | Func |
|-------|--------|
| cmd+n | search |
but I found tab
not working and IDEA doesn't help to indent the table so I have to manually add lots of -
. Is there an efficient way to insert a table in IDEA?
Create a new Markdown fileRight-click a directory in the Project tool window Alt+1 and select New | File. Alternatively, you can select the necessary directory, press Alt+Insert , and then select File. Enter a name for your file with a recognized extension, for example: readme.md.
To add a table, use three or more hyphens ( --- ) to create each column's header, and use pipes ( | ) to separate each column. For compatibility, you should also add a pipe on either end of the row. Cell widths can vary, as shown below. The rendered output will look the same.
There are two ways to format code in Markdown. You can either use inline code, by putting backticks (`) around parts of a line, or you can use a code block, which some renderers will apply syntax highlighting to.
Intellij community edition 2020.3.3
|header 1|header 2|
---|---
|xyz|x|
|xyz|y|
Make sure there is an empty line above the table for it to be rendered:
Some texts:
| Tables | Are | Cool |
|----------|:-------------:|------:|
| col 1 is | left-aligned | $1600 |
| col 2 is | centered | $12 |
| col 3 is | right-aligned | $1 |
(using activedecay's text example)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With