Half a year of hard work, "PyCharm Chinese Guide" v2.0 version, can be released

Hi everyone, I'm Brother Ming.

In September last year, I spent two months organizing and publishing the first version of "PyCharm Chinese Guide". The original intention was to help those students who were just getting started with Python but were dismissed by the giant PyCharm. How to use PyCharm To improve the coding efficiency, it should be the first Chinese e-book that introduces the PyCharm system.

In order to better show readers how to use PyCharm, in the original blog, nearly a hundred GIF dynamic images were recorded, but after exporting to PDF, the dynamic images will be automatically converted into static images (from dynamic images to static images) , I have marked it in the book), so I suggest to go to the original blog (http://pycharm.iswbm.com) to learn if possible.

The content of this book is very much. Without the code, the text has reached more than 60,000 and the PDF document has more than 200 pages , because it is aimed at all Python developers, not just for Python novices. , I believe that even if you have used PyCharm for some years, in this book, you can still learn a lot of efficient use skills.

New version description

The current manual version you see is 2.0. This new version adds chapters on database operations, supplements and improves the content of some other chapters, and solves issues raised by some friends on Github.

But these changes alone are not enough to make this manual directly from the previous 1.1 to 2.0 version.

In the previous versions 1.0 and 1.1, since most of the content was written under the Mac operating system, many friends who used Windows made suggestions. Can you mark the shortcut keys of different systems?

In order to meet the needs of these friends, I took a moment to sort out the 2.0 version of the manual that you are currently seeing.

The biggest change in version 2.0 is that I split the original manual into two versions for Windows and Mac

Friends who use Windows can see the Windows version: http://pycharm.iswbm.com/zh_CN/win/

Friends who use Mac can see the Mac version: http://pycharm.iswbm.com/zh_CN/mac/

The shortcut keys in the document have all been adapted to their respective systems, but the screenshots and GIFs are not re-recorded due to workload considerations, and I don’t think it is necessary to re-take screenshots and record GIFs. The same version of PyCharm’s Mac and It can be said that the difference in the Windows interface is not big, and it will not affect your study of the document.

Document content

Chapter 1: Download and Installation

The content of this chapter is more basic and introduces

  • The difference between multiple versions?
  • Is it necessary to use the professional version?
  • Five ways to use the professional version
  • How to use the professional version for free and legitimately?
  • How to get the professional version that is permanently free from cracking (never invalidate)?

Chapter 2: Debugging and Operation

After the first chapter is installed, the second chapter will go straight to the topic, learn to configure the Python environment, and then start to learn how to run and debug the program.

In this chapter, I have counted all the ways to execute Python code in PyCharm:

  • Shortcut keys and right-click to run code
  • main function entry execution program
  • Run the program with parameters

It’s not enough to run the code alone. Development + debugging are necessary skills. I have compiled a variety of debugging skills.

  • Detailed illustrations of all debug buttons
  • How to automatically enter the debug mode when the program runs incorrectly
  • Construction of remote debugging environment
  • How to build a once-and-for-all development environment

Chapter 3: Interface and Typesetting

PyCharm's default themes and code highlighting colors really can’t bear to look directly at it. If you want to look comfortable, each of the following elements is very important:

  • Suitable font and its size
  • Appropriate background color or background image
  • Appropriate code highlight color matching

It’s better to follow this chapter to configure PyCharm to your favorite look, your eyes are comfortable, not so tired, and the efficiency will naturally go up.

Chapter 4: Editing the code

As an IDE, code editing is the most basic function. In addition to some familiar code auto-completion, PyCharm basically has some more advanced gameplay methods, such as:

  • How to quickly rewrite the method of the parent class
  • How to implement interface methods quickly
  • How to realize the case conversion of variables
  • How to achieve code folding everywhere
  • How to check the signature of a function?
  • How to view contextual information?
  • How to preview the module document in the current tab?

This chapter will introduce you one by one

Chapter 5: Fast and efficient

Our demand for using IDEs is to improve coding efficiency. PyCharm brings us more than just code hints and completions. In the previous chapter, I listed some commonly used editing techniques when writing code.

But the difference is that the fourth chapter, the chapter pay more attention to the efficiency of the word, according to all my usual habit of accumulated skills and efficient use, if you do not bother to learn to configure, some are hard to find, such as:

  • How to record a macro and encapsulate multiple repeated steps into shortcut instructions?
  • How to use favorites, the key code bits of the favorite framework?
  • How to use code templates to improve coding efficiency?
  • How to refactor the framework code quickly and accurately?
  • How to quickly select a code block?

Once these skills are mastered, the efficiency and coding experience will definitely be improved.

Chapter 6: Search and Navigation

When it comes to Python editors, many people will compare VS Code with PyCharm and think that VS Code is the number one editor in the universe. If you remove the Python from the topic "Python editor", I can still accept it, but if you add I don't agree with Python.

Just reading the source code of the framework is a requirement, I believe that VSCode can't beat PyCharm.

If you usually have students who need to read the source code of the framework, don’t miss this chapter. In my opinion, this chapter is the most soulful chapter in the book. You are proficient in code retrieval and navigation in various postures. Function, will let you see the code like a fish in water.

The content in this section is all the essence, read this chapter carefully, I believe you will come back and give me a thumbs up.

Chapter 7: Version and Management

The formal project code is usually a version control system. PyCharm supports the most mainstream version control systems Git. With PyCharm, there is no need to download other third-party Git visual management software.

Considering that if this chapter only talks about Git, the content may not be much. Fortunately, PyCharm can be used with Git, a distributed version control system, and it has a lot of local version management functions. These functions are used Well, they are very practical.

Chapter 8: Plugins and Tools

Looking at the entire software circle, those applications that open interfaces and support third-party custom plug-ins, which one is not the existence of NB, such as Chrome, VSCode

PyCharm is naturally no exception. It has its own plug-in store, which has a lot of useful plug-ins, which can be used after installation. There are also some folk plug-ins that cannot be listed in the store (such as the well-known cracked plug-ins), you can also Drag directly to install.

In addition to introducing my daily essential plug-ins, this chapter will also introduce PyCharm's own development aids. It is with the existence of these plug-ins and tools that PyCharm can be used in many editors. Worthy.

Chapter 9: Common Skills

This chapter is also a summary of some usage skills, but it is too detailed and not easy to classify, so I put it all here.

Chapter 10: Operating the database

This chapter was not in the original version. Later, I saw that a friend raised an issue on Github, hoping to increase the content of operating the database, so the database part was also added in this version.

PyCharm supports connecting to most of the databases on the market, MySQL, Mongo, SQLite, etc. There are many database types that I have not seen before.

This chapter takes MySQL as an example to explain. After using the experience, I feel that the export of query results can be said to be a highlight. It can be converted to almost all formats you can think of: csv, xlsx, json, html, xml, sql, markdown, etc. A lot of formats.

How to get

The document itself is completely public and free. If the document is useful to you, please like + like. Your support and recognition is very important to me

Mac version "PyCharm Chinese Guide v2.0": https://wws.lanzous.com/iJPIvner86d

Win version "PyCharm Chinese Guide v2.0": https://wws.lanzous.com/iG3yfner8uh

Written at the end

I try my best to make the document comprehensive, detailed and easy to understand. Please help me to promote it. If one more person learns the document, the value of my unit time output will increase.

At the same time, if you have any suggestions for this document, you are welcome to submit an issue on github (https://github.com/iswbm/pycharm-guide). Any suggestions that can improve the quality of the document are accepted humbly.

If this document is helpful for you to learn PyCharm, please help to order a star on github. Your recognition is very important to me.

Guess you like

Origin blog.csdn.net/weixin_36338224/article/details/115295246