• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

dsznajder/vscode-react-javascript-snippets: Extension for React/Javascript snipp ...

原作者: [db:作者] 来自: 网络 收藏 邀请

开源软件名称:

dsznajder/vscode-react-javascript-snippets

开源软件地址:

https://github.com/dsznajder/vscode-react-javascript-snippets

开源编程语言:

TypeScript 89.5%

开源软件介绍:

Version Install Downloads Ratings

VS Code ES7+ React/Redux/React-Native/JS snippets

JavaScript and React/Redux snippets in ES7+ with Babel plugin features for VS Code

Installation

Visual Studio Marketplace

Launch Quick Open:

Paste the following command and press Enter:

ext install dsznajder.es7-react-js-snippets

Options

From version 4 extension provides options to customize the behavior of the snippets:

Option Description
languageScopes list of supported languages / files recognition
prettierEnabled determines if snippets should be parsed with project prettier config
importReactOnTop If disabled, snippets won't contain import React on top. React 17+ support
typescript adds additional typescript snippets

Sponsors


Manage pull requests and conduct code reviews in your IDE with full source-tree context. Comment on any line, not just the diffs. Use jump-to-definition, your favorite keybindings, and code intelligence with more of your workflow.
Learn More


Conquer of Completion

It is possible to use this package in your vim/neovim text editor, to make this possible, make sure you have the coc.nvim previously configured, then add this command to your init.vim

Plug 'dsznajder/vscode-es7-javascript-react-snippets', { 'do': 'yarn install --frozen-lockfile && yarn compile' }

Update your vim / neovim settings with :source % and then install the new package with :PlugInstall

Note: This example uses vim-plug as a package manager, feel free to use some other


Packer

For use with packer the syntax is a little different. Just add in your init.vim or init.lua:

use {'dsznajder/vscode-es7-javascript-react-snippets',
run = 'yarn install --frozen-lockfile && yarn compile'
}

When saving the file, the update will be done ( :w )


Search command

You can search through snippets with ES7 snippet search command which can be run with CMD + Shift + P or just use CMD + Shift + R (CTRL + ALT + R for Windows & Linux) keybinding.

Here is direct link to marketplace ES7 React/Redux/React-Native/JS Snippets


Snippets




鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap