Get the App
SLTechnology News&Howtos  ›  Development  › 

How to turn off the wavy line by pycharm

Shulou Source: shulou.com Published: 2022-06-01 03:54:51 10月03日 Update

Editor to share with you pycharm how to close the wavy line, I believe most people do not know much about it, so share this article for your reference, I hope you can learn a lot after reading this article, let's go to know it!

Close the wavy line that is a nuisance.

Let me give you a short code example to think about why name,my_name doesn't have wavy lines, while myname and wangbm have wavy lines.

Pycharm itself checks the variable name in real time. If the variable name is not an existing English word, a wavy line appears. When there are more than one word in a variable, Python recommends that it be separated by an underscore (other languages may be used to using hump naming, but Python uses an underscore), so in Pycharm's view, my_name is standard, while myname is treated as a word. Because it doesn't have it in the thesaurus, myname is irregular. If you don't understand anything in the learning process, you can join us to share with you the current talent needs of Python enterprises and how to learn Python from scratch and what to learn. Related learning video materials and development tools are shared.

Everyone's variable naming habits are different, how you use a lot of myname-style variable naming methods in the project, like the following (randomly find a piece of cloudinit code), it is very uncomfortable, there is always a code has the illusion of bug.

So how do you turn off this non-grammatical wavy line? It's very simple. The switch is on the head-like button in the lower right corner of you.

Then select the Syntax level. The same piece of code, the effect is as follows, much cleaner.

The above is all the content of the article "how to close the wavy line by pycharm". Thank you for reading! I believe we all have a certain understanding, hope to share the content to help you, if you want to learn more knowledge, welcome to follow the industry information channel!

Tags: Waves learning variables code words content articles underlines levels lines clean disturbing comfortable not so much heads portraits talent needs writing join us Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno MariaDB Docker Huawei Linux Xiaomi