All Projects → abdullahceylan → vscode-react-component-generator

abdullahceylan / vscode-react-component-generator

Licence: MIT license
A VSCode extension that generates a new React component with its files automatically in VSCode.

Programming Languages

typescript
32286 projects

Projects that are alternatives of or similar to vscode-react-component-generator

vscode-px-to-rem
Extension that allows you to convert from px to rem, and vice versa
Stars: ✭ 36 (+100%)
Mutual labels:  vscode-extension, vscode-plugin
vscode-settings
vscode(Visual Studio Code) 相关设置、使用技巧等整理
Stars: ✭ 16 (-11.11%)
Mutual labels:  vscode-extension, vscode-plugin
vscode-markdown-link-suggestions
Suggests workspace files and MarkDown file headers in MarkDown links
Stars: ✭ 15 (-16.67%)
Mutual labels:  vscode-extension, vscode-plugin
git-emoji-zh
VS code 插件,在 VScode 中提交 git 的时候添加 emoji 表情😝
Stars: ✭ 39 (+116.67%)
Mutual labels:  vscode-extension, vscode-plugin
vscode-console-helper
vscode console helper — 旨在帮助开发人员编码时更快的输入/移除 log,搭配上醒目的主题,提高开发效率。
Stars: ✭ 36 (+100%)
Mutual labels:  vscode-extension, vscode-plugin
mirage
A Mirage blue theme with pastel tones for Visual Studio Code
Stars: ✭ 39 (+116.67%)
Mutual labels:  vscode-extension, vscode-plugin
vs-code-bpmn-io
Edit BPMN 2.0 files. Based on bpmn.io tools.
Stars: ✭ 87 (+383.33%)
Mutual labels:  vscode-extension, vscode-plugin
angular-karma test-explorer
vscode extension for easy angular testing and debugging
Stars: ✭ 67 (+272.22%)
Mutual labels:  vscode-extension, vscode-plugin
quit-control-vscode
➡️ Stop mistyping keyboard shortcuts and quitting VSCode unintentionally
Stars: ✭ 37 (+105.56%)
Mutual labels:  vscode-extension, vscode-plugin
vscode-appsync-resolver-autocomplete
Adds autocomplete functionality to vscode when editing AWS AppSync resolver vtl files.
Stars: ✭ 21 (+16.67%)
Mutual labels:  vscode-extension, vscode-plugin
project-japanese-proofreading
テキストファイルやMarkdownファイルの日本語の文章をチェックするVS Codeの拡張機能
Stars: ✭ 81 (+350%)
Mutual labels:  vscode-extension, vscode-plugin
z-reader
📘 [vscode插件] 小说阅读器,支持在线搜索和本地阅读,支持txt和epub格式
Stars: ✭ 205 (+1038.89%)
Mutual labels:  vscode-extension, vscode-plugin
vscode-stylelint-plus
A Visual Studio Code extension to lint CSS/SCSS/Less with stylelint, support auto fix on save.
Stars: ✭ 32 (+77.78%)
Mutual labels:  vscode-extension, vscode-plugin
sap-hana-driver-for-sqltools
A Visual Studio Code extension which extends the SQLTools extension, with a driver to work with the SAP HANA Database. It supports tables and views, as well as running queries on an SAP HANA Database.
Stars: ✭ 17 (-5.56%)
Mutual labels:  vscode-extension, vscode-plugin
vscode-java-saber
⚔️ To make the vscode work as Eclipse or IDEA when you are coding in java.
Stars: ✭ 28 (+55.56%)
Mutual labels:  vscode-extension, vscode-plugin
vscode-theme-github-light
Try this theme if others don't meet your needs.
Stars: ✭ 49 (+172.22%)
Mutual labels:  vscode-extension
vscode-languagetool-linter
A from scratch redesign of LanguageTool integration for VS Code.
Stars: ✭ 72 (+300%)
Mutual labels:  vscode-extension
fast-sfdc
A VSCode plugin to develop Salesforce projects in vscode
Stars: ✭ 16 (-11.11%)
Mutual labels:  vscode-extension
vscode-endwise
Wisely add "end" in Ruby.
Stars: ✭ 75 (+316.67%)
Mutual labels:  vscode-extension
bazel-vscode
Proof-of-concept (POC) of a Bazel Java development extension for VS Code
Stars: ✭ 16 (-11.11%)
Mutual labels:  vscode-extension

React Component Generation Extension for VSCode

(vscode-react-component-generator)

Version Installs The MIT License GitHub

Other Versions

Please click here for React Native version

Description

The extension automatically creates folder for react component containing :

  • index.js
  • ComponentName.jsx
  • ComponentName.styles.js (for styled-component or emotion option)
  • ComponentName.css (for standard style option)
  • ComponentName.scss (for sass style option)
  • ComponentName.less (for less style option)

Installation

Install through VS Code extensions. Search for VSCode React Component Generator

Visual Studio Code Market Place: VSCode React Component Generator

Can also be installed in VS Code: Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.

ext install abdullahceylan.vscode-react-component-generator

Usage

  • Right click on the file or folder in the file explorer
  • Select one of following options:
    • "New React Container Component"
    • "New React Stateless Component"
    • "New React Container Component with Redux"
    • "New React Stateless Component with Redux"
  • Enter a component name in the pop up in camelCase or PascalCase. If you enter the component name as in camelCase, then extension will convert it PascalCase automatically.

Container component

Basic component

Container component with redux

Extension settings

Configuration

You can access to the extension's settings through VSCode settings. You can customize:

ACReactComponentGenerator.global.generateFolder (default: true)

Generate or not separate folder for newly created component

ACReactComponentGenerator.global.quotes (default: single)

Controls the quotes for the imports in the files. Valid options:

  • "single" - e.g.: import React from 'react'
  • "double" - e.g.: import React from "react"

ACReactComponentGenerator.global.lifecycleType (default: legacy)

The lifecycle type of generated component. Valid options:

  • "legacy" - Contains componentWillReceiveProps, componentWillMount
  • "reactv16" - Contains getSnapshotBeforeUpdate, getDerivedStateFromProps, getDerivedStateFromError, componentDidCatch and removes componentWillReceiveProps and componentWillMount

ACReactComponentGenerator.indexFile.create (default: true)

Whether to generate component's index file or not.

ACReactComponentGenerator.indexFile.extension (default: js)

The extension of generated component index file. e.g.: index.(extension)

ACReactComponentGenerator.mainFile.create (default: true)

Whether to generate component's main file or not.

ACReactComponentGenerator.mainFile.extension (default: jsx)

The extension of generated component file. e.g.: ComponentName.(extension)

ACReactComponentGenerator.styleFile.create (default: true)

Whether to generate component's stylesheet file or not.

ACReactComponentGenerator.styleFile.extension (default: js)

The extension of generated stylesheet file. e.g.: ComponentName.styles.(extension)

ACReactComponentGenerator.styleFile.suffix (default: .styles)

The suffix to add to the end of the stylesheet filename. Default: ComponentName.styles.(extension)

ACReactComponentGenerator.styleFile.type (default: styled-components)

The type of stylesheet file to create. Valid options:

  • "styled-components (.js)" - ComponentName.styles.js
  • "emotion (.js)" - ComponentName.styles.js
  • "standard (.css)" - ComponentName.styles.css
  • "sass (.scss)" - ComponentName.styles.sass
  • "less (.less)" - ComponentName.styles.less

Changelog

Click here

Bugs

Please report here

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].