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.

coc-pyright at the moment doesn’t support formatting. From what I understand, pyright itself doesn’t support formatting, but pylance does using vscode-python. Maybe you can take a look and see if it’s possible to implement the functionality in coc-pyright. Thank you!

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:2
  • Comments:10 (3 by maintainers)

github_iconTop GitHub Comments

6reactions
fannheywardcommented, Oct 10, 2020

Try coc-pyright 1.1.78, black/yapf/autopep8 are supported.

1reaction
jaapzcommented, Sep 8, 2020

Also looking for this! What’s the recommend setup right now if you need to use a formatter (i.e. Black) ?

If you use black, I recommend you install the official Black vim plugin https://github.com/psf/black/blob/master/docs/editor_integration.md#vim

Read more comments on GitHub >

github_iconTop Results From Across the Web

Code Formatting and Code Comments - A Beginner's Guide to ...
Code formatting and comments are useful tools to make any markup easier to understand, maintain, and troubleshoot. Above you have learned basic ...
Read more >
Prettier · Opinionated Code Formatter
Opinionated Code Formatter. ... What is Prettier? An opinionated code formatter; Supports many languages; Integrates with most editors; Has few options ...
Read more >
What does it mean to format your code? - Quora
Format your code means you are making your code readable for your fellow team members (readers). The reader should be able to understand...
Read more >
Code Style and Formatting - The Turing Way
A coding style is a set of conventions on how to format code. For instance, what do you call your variables? Do you...
Read more >
Clean Code: Formatting (Source code structure) | Nerd For Tech
Why does code formatting matter? Code formatting is about communication, and communication is the first order of business for the competent ...
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