In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-18 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >
Share
Shulou(Shulou.com)06/02 Report--
Editor to share with you how vscode ignores errors. I hope you will get something after reading this article. Let's discuss it together.
Pylint is a plug-in that comes with python in VScode, which can help the code to be standardized and beautiful. But there are some mistakes that you don't want to see, and you can ignore them selectively.
To customize ignore errors, do the following:
1. Search for python.linting.pylintArgs in setting.json files
two。 The modifications are as follows. Write the picture description here.
3. Add a string-disable= error code to python.linting.pylintArgs. If there are multiple error codes, separate them with parentheses. I only ignored E1101 here. You can change it to E1101BI E1102.
Note: I have read a lot of information on the Internet here, and many people say that it is added-- disable-msg= error code, but this method does not apply to me. Maybe I downloaded the latest version. You can use the method mentioned above, but you don't have to add msg.
This is what I added in the user settings user_setting in setting.json:
"python.linting.pylintArgs": ["- disable=E1101", "--disable=W,C"]
-- disable=E1101 ignores the error E1101
-- disable=W,C this is to ignore warnings waring and C.
After reading this article, I believe you have a certain understanding of "how vscode ignores errors". If you want to know more about it, you are welcome to follow the industry information channel. Thank you for reading!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.