Python packages
autopep8 automatically formats Python code to conform to the PEP 8 style guide:
pylint is a static code analysis tool which looks for programming errors:
If you choose pytest for your unit test, you have to install those:
Visual Code Extensions
1. Python Microsoft
Download: https://marketplace.visualstudio.com/items?itemName=ms-python.pythonAn extension with rich support for the Python and it contains linting, debugging, code navigation, code formatting, refactoring, unit tests, snippets, and so and so. This is a basic and necessary extension!
2. Python autopep8
With this, it can allow you to do auto-formatting in your Visual Studio Code.
3. py-coverage-view
The extension highlights test coverage in Visual Studio Code. It helps me to understand which line is not tested without looking at the console output.
4. Python Indent
I just installed because it looked neat.
5. GitLens — Git supercharged
GitLens helps you quickly find out whom, why, and when a line or code block was changed.
6. Trailing Spaces
It helps you remove annoying trailing spaces..
7. autoDocstring
This one makes you write python document easier.
8. Importmagic
Download: https://marketplace.visualstudio.com/items?itemName=brainfit.vscode-importmagic
It claims it can help me to import module automatically, but it seems it cannot work on my VSCode for unknown reasons.
It claims it can help me to import module automatically, but it seems it cannot work on my VSCode for unknown reasons.
9. Spell check
Download: https://marketplace.visualstudio.com/items?itemName=streetsidesoftware.code-spell-checkerNeedless to say, this extension is to check your spelling in your code or README.
10 Material-icon-them
Download: https://marketplace.visualstudio.com/items?itemName=PKief.material-icon-themeThis is an extension to beautify your folder and file with icon-based Material design.
11 Bracket Pair Colorizer
Download: https://marketplace.visualstudio.com/items?itemName=CoenraadS.bracket-pair-colorizerIt makes the code easier to identify matching brackets like ( [ { } ] ).
12 Python Test Explorer
Download: https://marketplace.visualstudio.com/items?itemName=LittleFoxTeam.vscode-python-test-adapterThis extension allows you to run your Python Unittest or Pytest tests with the Test Explorer UI.
13. VIM
Download: https://marketplace.visualstudio.com/items?itemName=vscodevim.vimFor Vim users, it is a Vim emulation for Visual Studio Code
As a side note, if you are a mac user and you want to press vim navigation key in mac to move the cursor, you have to type this in your terminal
defaults write com.microsoft.VSCode ApplePressAndHoldEnabled -bool false
14. GlobalConfig
After installing certain extensions, you might need to configure the settings for each project. GlobalConfig offers a solution to this. Therefore, you can create a global setting under ~/.vscode/settings.json which has the default settings. Here is an example
15. Sync your VSCode settings
Once you installed so many extensions in your VSCode, there is another extension to sync your settings across machines. For more information, you can follow this page: https://itnext.io/settings-sync-with-vs-code-c3d4f126989
https://stackoverflow.com/questions/33258543/how-can-i-exclude-a-directory-from-visual-studio-code-explore-tab
Note
As a side note, VSCode keeps track of each folder if they were changed. As a result, it takes up lot of memory and opens lots of file descriptors, leading to horrible performance on your computer. If you want to exclude certain folders or files, you can reference this post.https://stackoverflow.com/questions/33258543/how-can-i-exclude-a-directory-from-visual-studio-code-explore-tab
Hi there, thanks for posting such great post.
ReplyDeleteBut I wonder why you don't put email subscription box?
Thanks for providing your information! Keep update and share!!
ReplyDeleteAzure DevOps online training
Microsoft Azure DevOps Training
Microsoft Azure DevOps Online Training
Microsoft Azure DevOps training hyderabad
Azure DevOps online training in hyderabad
Great Post with valuable information. I am glad that I have visited this site. Share more updates.
ReplyDeletePytest Online Training
Pytest Online Course
Artificial Intelligence Online Course
Nice blog, very informative content.Thanks for sharing, waiting for the next update…
ReplyDeleteWhat is data science?
What are the uses of DataScience?