Book Image

Mastering PyCharm

By : Nafiul Islam
Book Image

Mastering PyCharm

By: Nafiul Islam

Overview of this book

Table of Contents (18 chapters)
Mastering PyCharm
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Index

Reading code


This section covers the different tools available in PyCharm to help you read code better. This is not an exhaustive list, however, as there are so many features out there.

The lens mode

When editing, you might notice that there are different colored bars on the right-hand side. If you hover over these small bars, you will be able to see the warning, error, or information in question. This is what PyCharm calls lens mode.

This is really quite useful when you want to take a quick look at the code. You can also see that lens mode will show you all the messages that the colored horizontal bars mean. In this case, you can see that by placing the mouse on the dark yellow bar, we can see the message that it is trying to convey. This can give you a quick bird's-eye view of your code. But, usually, when I want to see what a particular function does, I use Quick Documentation or Quick Definition.

Diagrams

The Diagrams option can also give you a great view of your code; you can simply go...