question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

A way to enable/disable prettier via the command menu

See original GitHub issue

Currently, the only shortcut we have is format. But it would be great to have a way to quickly enable/disable prettier.

Asking because I switch from project to another and not all of them use prettier so I have to enable or disable it manually.

image

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:1
  • Comments:7

github_iconTop GitHub Comments

2reactions
darahakcommented, Apr 22, 2017

@robwise Yup, I’ll take this one. Since I already added one command, this seems like a natural follow-up.

1reaction
FezVrastacommented, Apr 24, 2017

I think it would make sense to have a dotfile on the project directory to enable it.

Doing so I can keep it always on and have it active only in projects that explicitly states they make use of it.

Alternatively you may read the package.json and enable it only if it is listed as dependency.

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to disable prettier in VSCode for a specific project?
On Windows/Linux - File > Preferences > Settings · On macOS - Code > Preferences > Settings.
Read more >
CLI - Prettier
Use the `prettier` command to run Prettier from the command line.
Read more >
How to configure Prettier and VSCode - Gleb Bahmutov
Make sure local workspace settings have auto-format on save enabled. Open . · Prettier extension might be disabled by VSCode. Make sure the...
Read more >
Disable prettier for a single file - javascript - Stack Overflow
To exclude files from formatting, add entries to a .prettierignore file in the project root or set the --ignore-path CLI option. .prettierignore ......
Read more >
How To Format Code with Prettier in Visual Studio Code
With the Prettier extension installed, you can now leverage it to format your code. To start, let's explore using the Format Document command....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found