如何关闭PyCharm的代码错误提示功能?
如何关闭PyCharm的所有代码辅助提示(含语法错误提示)
解决方法
- 打开PyCharm设置:Windows/Linux按下
Ctrl+Alt+S,Mac按下Cmd+, - 导航到
Editor > Inspections界面 - 顶部的
Profile下拉菜单直接选择No inspections预设,这会一次性关闭所有代码检查和提示(很多人之前只手动取消部分项,容易遗漏) - 若想自定义关闭特定提示而非全关:在左侧列表展开
Python分类,取消勾选所有子项;再依次检查General、Spelling等其他分类,取消所有相关检查项 - 点击
Apply和OK保存设置
如果设置后仍有提示,试试清除缓存重启:
- 点击
File > Invalidate Caches...,选择Invalidate and Restart
谷歌搜索关键词
PyCharm disable all code inspection and syntax error hintsPyCharm turn off all error highlightingPyCharm No inspections profile not working
内容的提问来源于stack exchange,提问作者Ben Shaines
相关产品推荐
相关产品推荐

