Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/dineug/vuerd-vscode

ERD Editor vscode extension
https://github.com/dineug/vuerd-vscode

database db diagram editor erd extension vscode vuerd

Last synced: about 2 months ago
JSON representation

ERD Editor vscode extension

Awesome Lists containing this project

README

        

# Moved

This module has [moved](https://github.com/vuerd/vuerd/tree/master/packages/vuerd-vscode). This repository is no longer maintained.

# vuerd-vscode

> [vuerd](https://github.com/vuerd/vuerd) ERD Editor vscode extension

[![npm version](https://img.shields.io/npm/v/vuerd.svg?style=flat-square&color=blue)](https://www.npmjs.com/package/vuerd) [![VS Marketplace version](https://vsmarketplacebadge.apphb.com/version-short/dineug.vuerd-vscode.svg?style=flat-square&color=blue&logo=visual-studio-code)](https://marketplace.visualstudio.com/items?itemName=dineug.vuerd-vscode) [![APM](https://img.shields.io/apm/v/vuerd-atom?color=blue&style=flat-square&logo=atom)](https://atom.io/packages/vuerd-atom) [![GitHub](https://img.shields.io/github/license/vuerd/vuerd?style=flat-square&color=blue)](https://github.com/vuerd/vuerd/blob/master/LICENSE) [![CI](https://img.shields.io/github/workflow/status/vuerd/vuerd/CI?label=CI&logo=github&style=flat-square)](https://github.com/vuerd/vuerd/actions)

## ERD

![vuerd](https://github.com/vuerd/vuerd/blob/master/img/vuerd-erd.gif?raw=true)

## Usage

### [Webview API](https://code.visualstudio.com/api/extension-guides/webview)

1. ERD data [filename].vuerd.json Save a file as a form
1. Focus on the saved file and click the vuerd icon in the upper right corner of the Editor window
![Image](./img/vuerd-vscode-2.png)
![Image](./img/vuerd-vscode-1.png)

### [Custom Editor API](https://code.visualstudio.com/api/extension-guides/custom-editors)

1. ERD data [filename].vuerd Save a file as a form

## Theme settings.json

### Synchronize the current vscode theme

```json
{
"dineug.vuerd-vscode.themeSync": true,
// not synchronize color list
"dineug.vuerd-vscode.theme": {
"keyPK": "#B4B400",
"keyFK": "#dda8b1",
"keyPFK": "#60b9c4",
"edit": "#ffc107"
}
}
```

### Example settings.json configuration for a light themed editor

```json
{
"dineug.vuerd-vscode.themeSync": false,
"dineug.vuerd-vscode.theme": {
"canvas": "#d7d7d7",
"table": "#e6e6e6",
"tableActive": "#ebb692",
"focus": "#ff5600",
"keyPK": "#B4B400",
"keyFK": "#dda8b1",
"keyPFK": "#60b9c4",
"font": "#5d5d5d",
"fontActive": "black",
"fontPlaceholder": "#929292",
"contextmenu": "#e6e6e6",
"contextmenuActive": "#c7c2be",
"edit": "#003ef8",
"columnSelect": "#dcd5d0",
"columnActive": "#c8d6f7",
"minimapShadow": "#5d5d5d",
"scrollbarThumb": "#929292",
"scrollbarThumbActive": "#5d5d5d",
"menubar": "white",
"visualization": "#d7d7d7"
}
}
```

## Keymap settings.json

```json
{
"dineug.vuerd-vscode.keymap": {
"find": [
{
"altKey": true,
"key": "F"
}
],
"selectAllColumn": [] // remove keymap
}
}
```

## Document

- [Import SQL DDL support syntax](https://github.com/dineug/sql-ddl-parser/blob/master/src/SQL_DDL_Test_Case.md)
- [Live Demo](https://vuerd.github.io/vuerd/iframe.html?id=example-demo--erd-editor&args=&viewMode=story)

## Editor Keymap(default)

| Name | Keymap |
| ---------------------------------------------------------- | ---------------------------------------------------------------------------------------- |
| Editing - ERD | dblclick, Enter |
| Editing - Grid | dblclick, Enter |
| All Stop | Escape |
| Search - find, filter | Ctrl + F, Cmd + F |
| Undo - ERD | Ctrl + Z, Cmd + Z |
| Redo - ERD | Ctrl + Shift + Z, Cmd + Shift + Z |
| Selection - table, memo | Ctrl + Drag, Click, Ctrl + Click, Ctrl + Alt + A, Cmd + Drag, Cmd + Click, Cmd + Alt + A |
| Selection - column, filter | Click, Ctrl + Click, Cmd + Click, Shift + Click, Shift + Arrow key(up, down), Alt + A |
| Movement - table, memo, column, filter | Drag, Ctrl + Drag, Cmd + Drag |
| Copy - column | Ctrl + C, Cmd + C |
| Paste - column | Ctrl + V, Cmd + V |
| Contextmenu - ERD, Table, Relationship, SQL, GeneratorCode | Right-click |
| Table Properties | Ctrl + Space, Alt + Space |
| New Table | Alt + N |
| New Memo | Alt + M |
| New - column, filter | Alt + Enter |
| Delete - table, memo | Ctrl + Delete, Ctrl + Backspace, Cmd + Delete, Cmd + Backspace |
| Delete - column, filter | Alt + Delete, Alt + Backspace |
| Select Hint - dataType, find | Arrow key(right), Click |
| Move Hint - dataType, find | Arrow key(up, down) |
| Primary Key | Alt + K |
| checkbox - Grid, filter | Space, Click |
| Move checkbox - Grid, filter | Arrow key(up, down, left, right) |
| Relationship - Zero One | Ctrl + Alt + 1, Cmd + Alt + 1 |
| Relationship - Zero N | Ctrl + Alt + 2, Cmd + Alt + 2 |
| Relationship - One Only | Ctrl + Alt + 3, Cmd + Alt + 3 |
| Relationship - One N | Ctrl + Alt + 4, Cmd + Alt + 4 |
| Zoom In - ERD | Ctrl + Equal, Cmd + Equal |
| Zoom Out - ERD | Ctrl + Minus, Cmd + Minus |