Hi, I’m Mingo.
In September last year, I spent two months compiling and publishing the first version of PyCharm, a Guide to Improving the coding efficiency of Python beginners who were turned away by PyCharm. It should be the first Chinese ebook that systematically introduces the techniques used by PyCharm.
In order to better demonstrate PyCharm to readers, I have recorded nearly a hundred GIFs in the original blog. However, after exporting them to PDF, the giFs will be automatically converted into static ones (the ones that are converted into static ones are marked in the book). Therefore, I suggest that if conditions allow, Try to learn from the original blog (pycharm.iswbm.com).
The book is extensive, with more than 60,000 words and 200 pages of PDF documents without any code
Since PyCharm is intended for all Python developers, not just those who are new to Python, I believe that even if you have been using PyCharm for a few years, you will still be able to learn a lot of effective tricks in this book.
The new instructions
The current version of the manual you see is 2.0. This new version has added the chapter of database operation, supplemented and improved some other chapters, and solved the issue raised by some friends on Github.
But these changes alone are not enough to make the manual go straight from 1.1 to 2.0.
In previous versions 1.0 and 1.1, since most of the content was written on the Mac operating system, there were a lot of suggestions from Our Windows friends to see if we could include all the shortcuts for different systems.
In order to meet the needs of these friends, I took a moment to put together the current version of the 2.0 manual that you see.
The biggest change in version 2.0 is that I split the original manual into Windows and Mac versions
PyCharm Chinese Guide (Windows)
PyCharm Chinese Guide for Mac users
The shortcuts in the document have all been adapted to their own systems, but the screenshots and GIFs have not been re-recorded for the sake of workload, and I think it is not necessary to re-record screenshots and GIFs. There is little difference between the Mac and Windows interfaces of PyCharm in the same version. It will not affect your learning of the document.
The document content
Chapter one: Download and Installation
The content of this chapter, relatively basic, is introduced
- What are the differences between multiple versions?
- Is it necessary to use the professional version?
- Five ways to use the Pro version
- How to use pro for free and properly?
- How do I get the pro version of permanently unhack-free (never expire)?
Chapter two: debugging and running
With chapter one installed, Chapter two gets right down to learning how to configure the Python environment, and then learning how to run and debug programs.
In this chapter, I enumerate all the ways to execute Python code in PyCharm:
- Shortcut keys and right-click to run the code
- The main function entry executes the program
- Run the program with arguments
Only can run the code, is far from enough, development + debugging, is a necessary skill, I sorted out a variety of debugging skills
- Make detailed diagrams of all debugging buttons
- How to enter debug mode automatically when the program runs wrong
- Remote debugging environment setup
- How to build a once and for all development environment
Chapter three: interface and typesetting
PyCharm’s default theme and code highlighting schemes are untenable, and each of the following elements is important to look at comfortably:
- Appropriate font and size
- Suitable background color or background image
- Appropriate code highlighting color scheme
Follow this chapter and configure PyCharm to be your favorite and your eyes will be comfortable and your productivity will naturally increase
Chapter 4: Code editing
As an IDE, code editing is the most basic function. In addition to the well-known code completion, PyCharm also has some advanced features, such as:
- How to quickly implement a parent class method rewrite
- How to implement interface methods quickly
- How to implement case conversion of variables
- How to implement code everywhere folding
- How do I view a function’s signature?
- How do I view context information?
- How do I preview a module document in the current TAB?
This chapter will give you an introduction
Chapter five: Speed and efficiency
The purpose of using IDE is to improve the efficiency of coding. PyCharm brings us more than just code tips and completion. In the previous chapter, I listed some common editing techniques for writing code.
However, different from the fourth chapter, this chapter pays more attention to the efficiency of the two words, are I according to the usual use habit accumulation of efficient skills, if not deliberately to learn configuration, some are very difficult to find, such as:
- How do I record macros that encapsulate multiple steps into shortcut instructions?
- How to use favorites, favorites framework key code bits?
- How to use code templates to improve coding efficiency?
- How to refactor framework code quickly and accurately?
- How to quickly select a code block?
Once these skills are mastered, efficiency and coding experience will be improved to a higher level.
Chapter 6: Search and navigation
When it comes to Python editors, many people compare VS Code with PyCharm and think VS Code is the number one editor in the universe. If I drop Python from the topic “Python editor “, I can accept it. But if I add Python, I beg to differ.
I believe VSCode can’t beat PyCharm just by reading the framework source code.
If you usually have the framework source code reading requirements of the students, this chapter must not miss, in my opinion, this chapter is the book of the soul of a chapter, skilled in a variety of postures code retrieval, navigation functions, will let you look at the code like a duck in water.
All the content in this section is the essence, read the content of this chapter, I believe you will come back to give me a thumbs up.
Chapter 7: Versioning and management
PyCharm supports all versions of the most popular version control systems in Git. There is no need to download any third-party Git visual management software.
This chapter wouldn’t have been much if it had just been about Git. Fortunately, PyCharm works with Git, a distributed version control system, and has a number of native version management features that are very useful when used.
Chapter 8: Plug-ins and Tools
Across the software world, apps with open interfaces and support for third-party custom plugins, such as Chrome and VSCode, are not in NB
PyCharm is no exception. It has its own plugin store, and there are many useful plugins that you can use once you install them. There are also some folk plugins that you can’t go to the store (like the well-known crack plugins), you can also drag them to install.
In addition to my daily must-have add-ons, this chapter also introduces the development AIDS that come with PyCharm, which makes PyCharm one of ten in many editors.
Chapter 9: Common techniques
This chapter is also a summary of some of the techniques, but it is too detailed and difficult to categorize, so it is all here.
Chapter 10: Operating the Database
This chapter was not included in the original version, but later I saw a friend put up an issue on Github, hoping to increase the content about database operation, so the part of database is added in this version.
PyCharm allows you to connect to most databases on the market, MySQL, Mongo, SQLite, etc., many of which I have never seen before.
This chapter takes MySQL as an example to explain how to export query results, which can be converted into almost any format you can think of: CSV, XLSX, JSON, HTML, XML, SQL, Markdown and many other formats.
How to get
The document itself is completely open and free. If the document is useful to you, please click “like” + “like”. Your support and recognition are very important to me
Mac version “PyCharm Chinese guide v2.0” : wws.lanzoux.com/iJPIvner86d
Win the v2.0 PyCharm Chinese guide: wws.lanzoux.com/iG3yfner8uh
Written in the end
I try my best to make the document comprehensive, detailed, and easy to understand. Please help me to promote it. Every more person who learns the document, the value of my output per unit of time is more than one point.
In the meantime, if you have any suggestions for this document, please go to github (github.com/iswbm/pycha…). I am open to any suggestion that can improve the quality of the document.
If this document is helpful for you to learn PyCharm, please help to click a star on Github. Your recognition is very important to me.