How to use table editor

Time:2020-2-4

How to use table editor

apply

sublime text

Effect

Table editor is used to quickly create neat and beautiful tables in documents.

Activate & close

  1. ctrl + shift + p

  2. inputTable Editor

  3. ChoiceEnable for current syntax(activated) orDisable for current syntax(closed)

Use

input

    | Name | Phone 

Then add the shortcut key:ctrl + k , enter
obtain

    | Name | Phone |
    |------|-------|
    |      |       |

The cursor is now positioned in the first cell of the line below the dotted line
Fill in the form

    |    Name   | world | Phone |
    |-----------|-------|-------|
    | Xiao Ming | earth |   666 |
    |           | wow   |   345 |

tabUsed to jump to the next cell,shift + tabUsed to jump to the previous cell

There are three line breaks at the end of a line

  1. usetabThe cursor will jump to the first cell of the next row===========

  2. useenterThe cursor will jump to the last cell in the next row

  3. usectrl + k , enterInsert a line of divider|----------|----------|Jump to the first cell of the new row

Column operation

  • Add a column

    • alt + shift + right

    • Only in theLeftAdd a column

    • Understanding: move the cursor column to the right to make room for the newly inserted column

  • Delete one column

    • alt + shift + Left

    • Delete cursor column

  • Exchange two adjacent columns

    • alt + LeftChange the column to the left

    • alt + rightChange the column to the right

Row operation

  • Insert a row

    • alt + shift + lower

    • Only in theUpperInsert a row

    • Understanding: move the cursor line down one line to make room for the newly inserted line

  • Delete one row

    • alt + shift + upper

    • Delete cursor line

  • Insert split line|-------------|------------|

    • ctrl + k , -

    • Insert the divider line (hline) below the line where the cursor is located

  • Dismantle branches

    • alt + enter

    • Premise – there is a dividing line below the line where the cursor is located (if not, thenctrl + k , -

    • Extract all the contents behind the cursor in the cell where the cursor is located, create a new row below the row where the extracted data is located in the same column as the original cell in the new row

    In limine
        |    Name   | Phone | Age |
        |-----------|-------|-----|
        | Xiao Ming |   666 |   6 |
        | Xiao Mei  |   444 |   4 |
    
    Insert a line between Xiao Ming and Xiao Mei
    Step 1: place the cursor anywhere on the line Xiao Ming, and then Ctrl + K-
    
        |    Name   | Phone | Age |
        |-----------|-------|-----|
        | Xiao Ming |   666 |   6 |
        |-----------|-------|-----|
        | Xiao Mei  |   444 |   4 |
    
    Step 2: extract 666 and create a new line, place the cursor in front of 666, and then Alt + ENTER
        |    Name   | Phone | Age |
        |-----------|-------|-----|
        | Xiao Ming |       |   6 |
        |           |   666 |     |
        |-----------|-------|-----|
        | Xiao Mei  |   444 |   4 |
  • Merge 2 rows

    • ctrl + j

    In limine
        |    Name   | Phone | Age |
        |-----------|-------|-----|
        | Xiao Ming |       |   6 |
        |           |   666 |     |
        |-----------|-------|-----|
        | Xiao Mei  |   444 |   4 |
    
    Start the merge, and place the cursor at the merged place, where is the cell between Xiao Ming and 6,
    Then Ctrl + J
        |    Name   | Phone | Age |
        |-----------|-------|-----|
        | Xiao Ming |   666 |   6 |
        |-----------|-------|-----|
        | Xiao Mei  |   444 |   4 |
  • mobile data

    • alt + enter

    • Move all data behind the cursor in the cell where the cursor is to the beginning of the cell below the same column

    In limine
        |    Name   | Phone | Age |
        |-----------|-------|-----|
        | Xiao Ming |   666 |   6 |
        | Xiao Mei  |   444 |   4 |
    
    Move 666 to cell 444
    Place the cursor in front of 666, then Alt + ENTER
    
        |    Name   |  Phone  | Age |
        |-----------|---------|-----|
        | Xiao Ming |         |   6 |
        | Xiao Mei  | 666 444 |   4 |
  • Convert CSV to table

    • After selection,ctrl + kshift + |(thanks for your correction)

Recommended Today

The road of high salary, a more complete summary of MySQL high performance optimization in history

preface MySQL for many linux practitioners, is a very difficult problem, most of the cases are because of the database problems and processing ideas are not clear. Before the optimization of MySQL, we must understand the query process of MySQL. In fact, a lot of query optimization work is to follow some principles so that […]