generated from antfu/starter-vscode
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
10 changed files
with
1,218 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,6 @@ | ||
{ | ||
"extends": "@antfu" | ||
"extends": "@antfu", | ||
"rules": { | ||
"no-cond-assign": "off" | ||
} | ||
} |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,42 @@ | ||
# ext-name | ||
# Tree Log | ||
|
||
<a href="https://marketplace.visualstudio.com/items?itemName=antfu.ext-name" target="__blank"><img src="https://img.shields.io/visual-studio-marketplace/v/antfu.ext-name.svg?color=eee&label=VS%20Code%20Marketplace&logo=visual-studio-code" alt="Visual Studio Marketplace Version" /></a> | ||
<center> | ||
|
||
## Sponsors | ||
<a href="https://marketplace.visualstudio.com/items?itemName=daodaolea.tree-log" target="__blank"><img src="https://img.shields.io/visual-studio-marketplace/v/daodaolea.tree-log.svg?color=eee&label=VS%20Code%20Marketplace&logo=visual-studio-code" alt="Visual Studio Marketplace Version" /></a> | ||
|
||
<p align="center"> | ||
<a href="https://cdn.jsdelivr.net/gh/antfu/static/sponsors.svg"> | ||
<img src='https://cdn.jsdelivr.net/gh/antfu/static/sponsors.png'/> | ||
</a> | ||
</p> | ||
</center> | ||
|
||
## License | ||
|
||
[MIT](./LICENSE) License © 2022 [Anthony Fu](https://github.com/antfu) | ||
|
||
A plugin that automatically generates console.log statements in tree format. The default tree header is a random emoji, which can be customized. | ||
|
||
<center> | ||
|
||
![shot](res/shot.png) | ||
|
||
</center> | ||
|
||
## Features | ||
|
||
<center> | ||
|
||
![shot](res/shot.gif) | ||
|
||
</center> | ||
|
||
You can select the variable and use the shortcut key `alt`+`c` to automatically generate the console statement, or use `ctrl`+`alt`+`c` to delete the console statement of the file. | ||
|
||
You can also use the `Command Palette`, search for `Add Tree Log` to generate them, and `Delete Tree Log` to delete. | ||
|
||
Of course, you can also right-click and select `Tree Log` to operate it after selecting the variable. | ||
|
||
|
||
|
||
## Settings | ||
|
||
You can customize the tree head by adding text to settings.json (Command Palette -> Preferences: Open Settings (JSON)) | ||
|
||
For example: | ||
|
||
* `tree-log.suffix`: "a custom text" | ||
|
Oops, something went wrong.