Change highlighting setting for every file (by default) in PyCharm CE
Asked Answered
T

1

3

I just started using PyCharm as my IDE for Python. At the moment whenever I open a new .py file, I have to go to Code -> Configure Current File Analysis..., and then change the highlighting to syntax (preference) for every individual .py file.

Is there a way to change this for every file automatically, by default?

First post on stackoverflow by the way.

Thanks!

Tucana answered 2/10, 2015 at 7:46 Comment(0)
M
5

If you prefer not to see PyCharm's code inspections, I would suggest creating a new inspections profile that does no inspections. To do that, go to the Code -> Configure Current File Analysis dialog like you have been, but this time click on the Configure inspections link. At the top, click the "Manage" dropdown and copy the current profile into a new profile which you'll name "No inspections". Then uncheck everything, save the new inspections profile, and you'll be done. All new .py files should now be created under your "No inspections" profile.

Note that as far as I can tell, the inspection settings get saved per-project, rather than as a global setting. But changing the inspection profile once per project shouldn't be too much of a hassle.

Monocular answered 2/10, 2015 at 7:57 Comment(1)
it's only a workaround on something that should have been implemented globally by Jetbrains' devs but, still +1.Madrigal

© 2022 - 2024 — McMap. All rights reserved.