Mastering PyCharm
eBook - ePub

Mastering PyCharm

  1. 232 pages
  2. English
  3. ePUB (mobile friendly)
  4. Available on iOS & Android
eBook - ePub

Mastering PyCharm

Book details
Book preview
Table of contents
Citations

About This Book

Use PyCharm with fluid efficiency to write idiomatic python code

About This Book

  • Understand how PyCharm works and how you can leverage its strength to develop applications quickly
  • Master PyCharm's editor to get a fast workflow
  • Full of examples and illustrations that focus on the practical aspects of using PyCharm

Who This Book Is For

If you know PyCharm but want to understand it better and leverage its more powerful but less obvious tool set, this is the book for you. Serving as a launch pad for those who want to master PyCharm and completely harness its best features, it would be helpful if you were familiar with some of Python's most prominent tools such as virtualenv and Python's popular docstring formats such as reStructuredText and EpyType.

What You Will Learn

  • Understand the internal workings of the IntelliJ Platform
  • Leverage PyCharm's powerful search tools, and learn which ones are the best for you and your workflow
  • Customize PyCharm's enhanced Python interpreter and its inbuilt terminal
  • Develop web applications quickly and easily with different frameworks such as Flask and Django
  • Understand how code completion works in PyCharm for Python and JavaScript

In Detail

PyCharm is addictive, with powerful and configurable code completion, superb editing tools, top-notch support, diverse plugins, and a vibrant ecosystem to boot. Learning how PyCharm works and maximising the synergy of its powerful tools will help you to rapidly develop applications.

From leveraging the power of the editor to understanding PyCharm's internals, this book will give you a comprehensive view of PyCharm and allow you to make your own choices about which workflow and tools are best for you.

You will start by getting comfortable with PyCharm and making it look exactly like you want. You can customize the tools and taskbars to suit individual developers' coding styles. You also learn how to assign keyboard shortcuts. You will master debugging by inserting breakpoints, collecting runtime data, and debugging from the console. You will understand how PyCharm works underneath and how plugins such as Codemap, Vim, Bitbucket, Assets compressor, markdown, bash file, shortcut translator, and.gitignore leverage the power of the IntelliJ platform.

You will become comfortable using the VCS interface in PyCharm and see the benefits of using it for some simple tasks as well as some more complex tasks such as partial commits using changelists.

You will take an in-depth look at the various tools in PyCharm, improving your workflow drastically. Finally, you will deploy powerful PyCharm tools for Django, Flask, GAE, and Pyramid Development, becoming well acquainted with PyCharm's toolset for web development with popular platforms.

Packed with insider tricks, this book will help you boost productivity with PyCharm.

Style and approach

An easy-to-follow guide with plenty of examples and screenshots. Each topic starts off with the goal of enhancing or changing a part of PyCharm to make it suit your needs.

Frequently asked questions

Simply head over to the account section in settings and click on ā€œCancel Subscriptionā€ - itā€™s as simple as that. After you cancel, your membership will stay active for the remainder of the time youā€™ve paid for. Learn more here.
At the moment all of our mobile-responsive ePub books are available to download via the app. Most of our PDFs are also available to download and we're working on making the final remaining ones downloadable now. Learn more here.
Both plans give you full access to the library and all of Perlegoā€™s features. The only differences are the price and subscription period: With the annual plan youā€™ll save around 30% compared to 12 months on the monthly plan.
We are an online textbook subscription service, where you can get access to an entire online library for less than the price of a single book per month. With over 1 million books across 1000+ topics, weā€™ve got you covered! Learn more here.
Look out for the read-aloud symbol on your next book to see if you can listen to it. The read-aloud tool reads text aloud for you, highlighting the text as it is being read. You can pause it, speed it up and slow it down. Learn more here.
Yes, you can access Mastering PyCharm by Quazi Nafiul Islam in PDF and/or ePUB format, as well as other popular books in Computer Science & Programming in Python. We have over one million books available in our catalogue for you to explore.

Information

Year
2015
ISBN
9781783551316
Edition
1

Mastering PyCharm


Table of Contents

Mastering PyCharm
Credits
About the Author
About the Reviewers
www.PacktPub.com
Support files, eBooks, discount offers, and more
Why subscribe?
Free access for Packt account holders
Preface
What this book covers
What you need for this book
Who this book is for
Conventions
Reader feedback
Customer support
Downloading the example code
Downloading the color images of this book
Errata
Piracy
Questions
1. Getting the Right Look
A short note on keyboard shortcuts
The basics
The first change ā€“ fonts
The layout
The minimalist
Beautiful code
Editor
Getting the right colors
Style hierarchies
Styling on steroids
Imports and exports
TextMate bundles
Summary
2. Understanding the Keymap
Different keymaps
Finding shortcuts
Setting shortcuts
Troubleshooting on Mac
Summary
3. Getting Places
Omni
Back and Forward
Macro
Go to definition or navigate to declaration
Search Everywhere
The Switcher tool
The Project panel
Micro
The Structure panel
Ace Jump
Summary
4. Editing
Improving code completion
Understanding what intentions can do for you
Collecting runtime types
Adding docstrings and type information
The skeletons in PyCharm's closet
Setting up IPython Notebook
Editor plugins
Writing code
Refactoring
Multiple cursors
doc_mode
Reading code
The lens mode
Diagrams
Method hierarchies
Summary
5. Interpreters and Consoles
All about interpreters
Adding interpreters
Creating virtualenvs
Through the terminal
Installing packages
Setting paths
Remote interpreters
Using Vagrant in PyCharm
The PyCharm console
Console configuration
Summary
6. Debugging
Running, debugging, and setting breakpoints
Debugging workflow
Dealing with threads and processes
Processes
Debugging from the console
Attach to Processā€¦
Profiling
Summary
7. The PyCharm Ecosystem
The IntelliJ ecosystem
Support for PyCharm
YouTrack.JetBrains
What makes a good plugin?
Summary
8. File Templates and Snippets
File templates
Understanding variables
Making new templates
Snippets (live templates)
Surround templates
Summary
9. Version Control Integration
Initializing version control
Ignoring files
Remotes
The VCS menu
The Changes panel
Changing Diff colors
Change lists
Summary
10. HTML and JavaScript Tools
JavaScript support
Getting the most out of JavaScript code completion
Using JSDoc
Using libraries
Transpiled to JavaScript languages
Support for libraries and frameworks
Client-side frameworks
Server-side frameworks and NodeJS
JavaScript Code Quality Tools
HTML and CSS
Emmet
Live debugging
Installing the plugin
Debugging the file
File watchers
Summary
11. Web Development with PyCharm
Database tools
Adding a data source
Connecting to a database
Adding files
Using the SQL console
Parameterized statements
Console history
Database diagrams
Exporting data
Copying DDLs
Exporting the table contents
Web frameworks
Common features
Support for templating engines
Customized project creation
Debugging in templates
Django
Setting up Django
Model dependency diagrams
Manage.py tasks
Django Console
Summary
Index

Mastering PyCharm

Copyright Ā© 2015 Packt Publishing
All rights reserved. No part of this book may be reproduced, stored in a retrieval system, or transmitted in any form or by any means, without the prior written permission of the publisher, except in the case of brief quotations embedded in critical articles or reviews.
Every effort has been made in the preparation of this book to ensure the accuracy of the information presented. However, the information contained in this book is sold without warranty, either express or implied. Neither the author, nor Packt Publishing, and its dealers and distributors will be held liable for any damages caused or alleged to be caused directly or indirectly by this book.
Packt Publishing has endeavored to provide trademark information about all of the companies and products mentioned in this book by the appropriate use of capitals. However, Packt Publishing cannot guarantee the accuracy of this information.
First published: October 2015
Production reference: 1201015
Published by Packt Publishing Ltd.
Livery Place
35 Livery Street
Birmingham B3 2PB, UK.
ISBN 978-1-78355-131-6
www....

Table of contents

  1. Mastering PyCharm