GithubHelp home page GithubHelp logo

Comments (12)

pekeler avatar pekeler commented on May 26, 2024 5

Ahhh, that works. And ALT-SHIFT-F on the Mac. Thank you @CiGit!
Is CMD-SHIFT-P for Windows?

from prettier-vscode.

CiGit avatar CiGit commented on May 26, 2024 1

It is bound to Format Document in Command palette. CTRL+SHIFT+I by default on Linux

from prettier-vscode.

pekeler avatar pekeler commented on May 26, 2024

prettier

cmd-shift-p

from prettier-vscode.

dKab avatar dKab commented on May 26, 2024

Same here. My OS - Ubuntu. It's a bummer...

from prettier-vscode.

dKab avatar dKab commented on May 26, 2024

@CiGit any idea why when I format document with ctrl+ shift +i the formatting differs from when I format the same document via prettier CLI with --write? @pekeler could you check this on your linux setup, too?

from prettier-vscode.

CiGit avatar CiGit commented on May 26, 2024

@pekeler Windows: SHIFT+ALT+F by default


@dKab It may be:

  • Different config
  • Different prettier version (latest prettier-vscode is based on 0.22.0)
  • Additional vscode plugin which also transforms your code.

I'll close that issue. It has been answered and the README mentions it.
@dKab Please open a new issue if needed

from prettier-vscode.

dKab avatar dKab commented on May 26, 2024

The same on Windows 10. I use eslint-plugin-prettier with eslint-config-prettier and when I format document from vscode command palette (which you are saying invokes prettier when your extension is enabled) eslint still shows errors. However when I run prettier from command line eslint is silent.

from prettier-vscode.

Maxhodges avatar Maxhodges commented on May 26, 2024

I installed Prettier and restarted, but there is no >Format Document command. OSX. option + shift + F works, but think it's using the Visual Code default formatter..

image

from prettier-vscode.

RobinMalfait avatar RobinMalfait commented on May 26, 2024

This plugin registers itself as a formatter. Therefore it works using the built in Format Document

from prettier-vscode.

Maxhodges avatar Maxhodges commented on May 26, 2024

OK, thanks

from prettier-vscode.

dongcai avatar dongcai commented on May 26, 2024

Ahhh, that works. And ALT-SHIFT-F on the Mac. Thank you @CiGit!
Is CMD-SHIFT-P for Windows?

ALT-SHIFT-F for Mac. Why not update the Readme?

from prettier-vscode.

github-actions avatar github-actions commented on May 26, 2024

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

from prettier-vscode.

Related Issues (20)

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.