简体   繁体   中英

How to remove warning about Unnecessary semicolon in Visual Studio Code?

I use the VS Code for my Python scripts, and I like to put a semicolon after every line, but the editor always emphasizes the semicolon and it distracts me a lot.
Q: How do I disable this warning in the VS Code?

Huh, what an interesting habbit: I imagine updating a python linter in VS Code to ignore a semicolon is pretty easy: https://code.visualstudio.com/docs/python/linting

There isn't an out-of-the-box solution that I know of.

Put a space after each semicolon. You can also put a tab after it.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM