GithubHelp home page GithubHelp logo

im-sven / prettier-vscode Goto Github PK

View Code? Open in Web Editor NEW

This project forked from prettier/prettier-vscode

0.0 0.0 0.0 28 KB

Visual Studio Code plugin for Prettier

Home Page: https://github.com/jlongster/prettier

License: MIT License

TypeScript 100.00%

prettier-vscode's Introduction

Prettier formatter for Visual Studio Code

VS Code package to format your Javascript using Prettier.

Installation

Install through VS Code extensions. Search for Prettier - JavaScript formatter

Visual Studio Code Market Place: Prettier - JavaScript formatter

Can also be installed using

ext install prettier-vscode

Usage

Using Command Palette (CMD + Shift + P)

1. CMD + Shift + P -> Format Document
OR
1. Select the text you want to Prettify
2. CMD + Shift + P -> Format Selection

Format On Save

Respects editor.formatOnSave setting.

Settings

printWidth (default: 80)

Fit code within this line limit

tabWidth (default: 2)

Number of spaces it should use per tab

useFlowParser (default: false)

Use the flow parser instead of babylon. Deprecated use parser: 'flow' instead

singleQuote (default: false)

If true, will use single instead of double quotes

trailingComma (default: false)

Controls the printing of trailing commas wherever possible

bracketSpacing (default: true)

Controls the printing of spaces inside object literals

parser (default: 'babylon')

Which parser to use. Valid options are 'flow' and 'babylon'

Contribute

This is my first Visual Studio Extension so I probably made some terrible choices. Feel free to open issue or PRs!

prettier-vscode's People

Contributors

b3njamin avatar cigit avatar colek42 avatar dburrows avatar esbenp avatar im-sven avatar jonathanwolfe avatar lrowe avatar tyriar avatar vasa-chi avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.