Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

can not work repalce ctrl + alt+l in Pycharm? #424

Open
Cherrymelon opened this issue Apr 17, 2024 · 3 comments
Open

can not work repalce ctrl + alt+l in Pycharm? #424

Cherrymelon opened this issue Apr 17, 2024 · 3 comments
Labels
documentation Improvements or additions to documentation

Comments

@Cherrymelon
Copy link

Describe the bug
I found it show difference code formtter result when I use ctrl +alt+L and run ruff format, I'm sure enable run ruff when reformat code

To Reproduce
Steps to reproduce the behavior:

  1. ctrl +alt+L
  2. watch result
  3. run ruff format for some py file
  4. See difference

Expected behavior
same format result

Screenshots
If applicable, add screenshots to help explain your problem.
Also, gif movies are recommended.
press ctrl +alt +l
image

run ruff format

image

Environments (please complete the following information):

  • IDE: [PyCharm Community 2024.1 ]
  • OS: [ macOS 14.4.1 ]
  • Ruff Version [0.3.7 ]
  • Plugin version [ 0.0.33 ]

Additional context
my config
image

@DonDebonair
Copy link

I have the same problem. Reformat Code still seems to use the internal PyCharm code formatter and not Ruff.

@Cherrymelon
Copy link
Author

I have the same problem. Reformat Code still seems to use the internal PyCharm code formatter and not Ruff.

try to confirm that you enable `Use ruff format(Experimental) for version 0.0.289 or later.
It works for me

@tstrych
Copy link

tstrych commented May 29, 2024

@Cherrymelon 's answer Use ruff format(Experimental) for version 0.0.289 or later.
worked for me as well.
I had the same issue as @DonDebonair with macbook m2, pycharm code style was applied until i checked the experimental tag, thanks.

It would be really useful if there is some documentation around options once you download the plugin :)

@koxudaxi koxudaxi added the documentation Improvements or additions to documentation label May 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation
Projects
None yet
Development

No branches or pull requests

4 participants