Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Free Learning
Arrow right icon
MASTERING PYCHARM
MASTERING PYCHARM

MASTERING PYCHARM: Use PyCharm with fluid efficiency to write idiomatic python code

Arrow left icon
Profile Icon Nafiul Islam
Arrow right icon
zł59.99 zł129.99
Full star icon Full star icon Half star icon Empty star icon Empty star icon 2.6 (17 Ratings)
eBook Oct 2015 232 pages 1st Edition
eBook
zł59.99 zł129.99
Paperback
zł161.99
Subscription
Free Trial
Arrow left icon
Profile Icon Nafiul Islam
Arrow right icon
zł59.99 zł129.99
Full star icon Full star icon Half star icon Empty star icon Empty star icon 2.6 (17 Ratings)
eBook Oct 2015 232 pages 1st Edition
eBook
zł59.99 zł129.99
Paperback
zł161.99
Subscription
Free Trial
eBook
zł59.99 zł129.99
Paperback
zł161.99
Subscription
Free Trial

What do you get with eBook?

Product feature icon Instant access to your Digital eBook purchase
Product feature icon Download this book in EPUB and PDF formats
Product feature icon Access this title in our online reader with advanced features
Product feature icon DRM FREE - Read whenever, wherever and however you want
OR
Modal Close icon
Payment Processing...
tick Completed

Billing Address

Table of content icon View table of contents Preview book icon Preview Book

MASTERING PYCHARM

Chapter 2. Understanding the Keymap

The keymap is one of the most powerful features that PyCharm has to offer. It allows you to set your keyboard shortcuts and find the keyboard shortcuts you've seen other people use. It also allows you to use a familiar set of keyboard shortcuts that you're used to such as Eclipse and Emacs. This chapter is very much a standalone chapter, and if you understand how keymaps work, you're well on your way to using the most powerful features that PyCharm has to offer with ease.

In this chapter, we are going to go over the following topics:

  • Different keymaps: PyCharm assumes that you might have had prior experience with a separate IDE or editor, so you can quickly adapt PyCharm to predetermined keyboard shortcuts.
  • Finding shortcuts: A lot of times, you will see other people using keyboard shortcuts, but you won't know what they're called. This section will remedy that.
  • Setting shortcuts: We will customize our own keyboard and mouse...

Different keymaps

PyCharm has a default keymap and even a nice PDF to show you all the most used commands when you navigate to Help | Default Keymap Reference (the same on Mac, Windows, and Linux).

Different keymaps

On Mac, the default keymap is OSX 10.5+, and on both Windows and Linux, the default keymap is called Default. This can easily be changed by changing the keymap by going to Preferences (Mac) or Settings… (Windows/Linux).

Different keymaps

Notice how my keymap is Mac OS X 10.5+ copy. This is because you cannot override a predefined configuration; you can only make your own copy of it. If my list is different from yours, it's because I imported some of my keymaps; in this case, Default copy from my Windows installation. Just like themes, you can import and export keymaps.

Finding shortcuts

Now you can easily search for the keyboard shortcut that you're looking for in the find bar, for example, if we want Find Action…, we can search for it like this:

Finding shortcuts

However, you can also do just the reverse by inputting the shortcut to find out what it's called (this is incredibly useful when you're trying to explain what you're doing to someone else on another platform with a different set of default keyboard shortcuts).

Finding shortcuts

So, if we wanted to find what Alt + Q does, we would have done this:

Finding shortcuts

At this point, I feel that it would be prudent to note that Mac shortcuts have special symbols in them, while Windows/Linux don't (you can skip the next page). When I was first using Mac with PyCharm, I found this quite perplexing because other than the command key (), there were no other symbols on my Mac's keyboard. These characters are explained in the bottom-right corner of the Default Keymap Reference for Mac (which is a PDF).

However, if you...

Setting shortcuts

Now that we've got all the basics down, it's (finally) time to make a keyboard shortcut of our own, and we are going to start by making a keyboard shortcut for the terminal. I have my terminal set to open up at [command + Shift + ;]. So, let's see how we can get around to doing that.

First, we are going to look up for terminal and see what we get:

Setting shortcuts

If you take a look, you will see that we have three options, and it turns out that they all do the same thing. Now, notice how Terminal pops up in three separate places. This is because the terminal inside PyCharm is in fact two things: one being a bundled plugin and another being a tool. This is why you see Terminal appearing in several places. This Terminal tool can be invoked by both [command + Shift + ;] and [Alt + F12]. Now, I don't really like [Alt + F12], so I am going to get rid of it, by right-clicking (or double-clicking) on the highlighted row:

Setting shortcuts

Now I am assigning a new shortcut by clicking on Add Keyboard...

Troubleshooting on Mac

One problem I faced when I first set up my Mac was that the keyboard shortcuts did not work; instead of getting the desired action, I got weird Greek letters appearing here and there. At first, I thought this was PyCharm's fault, but it wasn't.

The main problem was that the keyboard layout I was using, U.S., had special characters appearing when the Alt/Option key was pressed. In order to actually use my keyboard shortcuts, I had to change my layout to something that did not have these special characters appearing. Here is the solution to this problem.

  1. Download the key mapping file from Packt's website.
  2. After you've downloaded it, move it to ~/Library/Keyboard Layouts.
  3. Once you've saved the file there, all you need to do is make it your main keyboard layout. To do this, you need to head over to System Preferences:
    1. Go to Keyboard:
      Troubleshooting on Mac
    2. And then, choose to add a new one by clicking on the + button:
      Troubleshooting on Mac
    3. Choose Others, as shown in the following screenshot:
      Troubleshooting on Mac
    4. Once...

Summary

In this chapter, we covered what is perhaps the most important part of using any IDE. We also looked at the common problems that one might have with setting up keyboard shortcuts on Mac.

The contents of this chapter will serve us well in the future as it will allow us to talk about keyboard shortcuts by reference to what they are called instead of having to provide a long list of possible shortcuts depending on our mapping.

Left arrow icon Right arrow icon

Description

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.

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

Product Details

Country selected
Publication date, Length, Edition, Language, ISBN-13
Publication date : Oct 23, 2015
Length: 232 pages
Edition : 1st
Language : English
ISBN-13 : 9781783551323
Vendor :
JetBrains
Category :
Languages :
Tools :

What do you get with eBook?

Product feature icon Instant access to your Digital eBook purchase
Product feature icon Download this book in EPUB and PDF formats
Product feature icon Access this title in our online reader with advanced features
Product feature icon DRM FREE - Read whenever, wherever and however you want
OR
Modal Close icon
Payment Processing...
tick Completed

Billing Address

Product Details

Publication date : Oct 23, 2015
Length: 232 pages
Edition : 1st
Language : English
ISBN-13 : 9781783551323
Vendor :
JetBrains
Category :
Languages :
Tools :

Packt Subscriptions

See our plans and pricing
Modal Close icon
$19.99 billed monthly
Feature tick icon Unlimited access to Packt's library of 7,000+ practical books and videos
Feature tick icon Constantly refreshed with 50+ new titles a month
Feature tick icon Exclusive Early access to books as they're written
Feature tick icon Solve problems while you work with advanced search and reference features
Feature tick icon Offline reading on the mobile app
Feature tick icon Simple pricing, no contract
$199.99 billed annually
Feature tick icon Unlimited access to Packt's library of 7,000+ practical books and videos
Feature tick icon Constantly refreshed with 50+ new titles a month
Feature tick icon Exclusive Early access to books as they're written
Feature tick icon Solve problems while you work with advanced search and reference features
Feature tick icon Offline reading on the mobile app
Feature tick icon Choose a DRM-free eBook or Video every month to keep
Feature tick icon PLUS own as many other DRM-free eBooks or Videos as you like for just zł20 each
Feature tick icon Exclusive print discounts
$279.99 billed in 18 months
Feature tick icon Unlimited access to Packt's library of 7,000+ practical books and videos
Feature tick icon Constantly refreshed with 50+ new titles a month
Feature tick icon Exclusive Early access to books as they're written
Feature tick icon Solve problems while you work with advanced search and reference features
Feature tick icon Offline reading on the mobile app
Feature tick icon Choose a DRM-free eBook or Video every month to keep
Feature tick icon PLUS own as many other DRM-free eBooks or Videos as you like for just zł20 each
Feature tick icon Exclusive print discounts

Frequently bought together


Stars icon
Total 557.97
Python GUI Programming Cookbook
zł197.99
MASTERING PYCHARM
zł161.99
Mastering Flask
zł197.99
Total 557.97 Stars icon
Banner background image

Table of Contents

12 Chapters
1. Getting the Right Look Chevron down icon Chevron up icon
2. Understanding the Keymap Chevron down icon Chevron up icon
3. Getting Places Chevron down icon Chevron up icon
4. Editing Chevron down icon Chevron up icon
5. Interpreters and Consoles Chevron down icon Chevron up icon
6. Debugging Chevron down icon Chevron up icon
7. The PyCharm Ecosystem Chevron down icon Chevron up icon
8. File Templates and Snippets Chevron down icon Chevron up icon
9. Version Control Integration Chevron down icon Chevron up icon
10. HTML and JavaScript Tools Chevron down icon Chevron up icon
11. Web Development with PyCharm Chevron down icon Chevron up icon
Index Chevron down icon Chevron up icon

Customer reviews

Top Reviews
Rating distribution
Full star icon Full star icon Half star icon Empty star icon Empty star icon 2.6
(17 Ratings)
5 star 23.5%
4 star 5.9%
3 star 5.9%
2 star 41.2%
1 star 23.5%
Filter icon Filter
Top Reviews

Filter reviews by




CBO Dec 15, 2015
Full star icon Full star icon Full star icon Full star icon Full star icon 5
As a developer I found this book to be very helpful. I have been a long time PyCharm user, but most of my day is spent tracking down feature requests and fixing bugs. Not so much learning how to be more productive using an IDE. However I found this book a great tutorial for speeding up common tasks like refactoring, debugging and live templates for code snippets. I didn't even know about some of these more advanced features that are hidden behind the most common tasks that you use everyday. Debugging options for attaching to running processes was also a very interesting topic.
Amazon Verified review Amazon
Gixxer Boy Dec 09, 2015
Full star icon Full star icon Full star icon Full star icon Full star icon 5
After using Pycharm for a number of years, I decided to buy this book to try and make better use of it. It covers a number of topics, some I don't really use, such as web development. Others, such as remote debugging, using virtualenv and Vagrant integration , integrated ipython console have become part of my standard toolset.While I could have trawled the web for all of this information, this book provided a structured way to improve the quality and consistently of the code I write, as well as spending more time on the interesting tasks.Well worth the money.
Amazon Verified review Amazon
Dr. John Nov 11, 2017
Full star icon Full star icon Full star icon Full star icon Full star icon 5
Super book thank you
Amazon Verified review Amazon
parafly73 Nov 27, 2015
Full star icon Full star icon Full star icon Full star icon Full star icon 5
I'm not a developer but I use Python to make my life easier in many aspects of my daily job since a few years. Very early on I decided to use PyCharm as my IDE of choice. I always wondered that some tasks were rather cumbersome and I was pretty sure that PyCharm offered better ways to accomplish certain things. I got by and never thought it was worth the time to work through my (minor) problems.However, this book comes straight to the point, and shows how to get the most out of PyCharm. It may be not be of great value for somebody that worked with PyCharm day in day out for a long time. For me it made my job quite a bit easier as I'm not using the software more efficiently. All the little issues of which I always suspected must have a simple solution, got addressed.
Amazon Verified review Amazon
just ask me Oct 29, 2018
Full star icon Full star icon Full star icon Full star icon Empty star icon 4
Hope this helps...
Amazon Verified review Amazon
Get free access to Packt library with over 7500+ books and video courses for 7 days!
Start Free Trial

FAQs

How do I buy and download an eBook? Chevron down icon Chevron up icon

Where there is an eBook version of a title available, you can buy it from the book details for that title. Add either the standalone eBook or the eBook and print book bundle to your shopping cart. Your eBook will show in your cart as a product on its own. After completing checkout and payment in the normal way, you will receive your receipt on the screen containing a link to a personalised PDF download file. This link will remain active for 30 days. You can download backup copies of the file by logging in to your account at any time.

If you already have Adobe reader installed, then clicking on the link will download and open the PDF file directly. If you don't, then save the PDF file on your machine and download the Reader to view it.

Please Note: Packt eBooks are non-returnable and non-refundable.

Packt eBook and Licensing When you buy an eBook from Packt Publishing, completing your purchase means you accept the terms of our licence agreement. Please read the full text of the agreement. In it we have tried to balance the need for the ebook to be usable for you the reader with our needs to protect the rights of us as Publishers and of our authors. In summary, the agreement says:

  • You may make copies of your eBook for your own use onto any machine
  • You may not pass copies of the eBook on to anyone else
How can I make a purchase on your website? Chevron down icon Chevron up icon

If you want to purchase a video course, eBook or Bundle (Print+eBook) please follow below steps:

  1. Register on our website using your email address and the password.
  2. Search for the title by name or ISBN using the search option.
  3. Select the title you want to purchase.
  4. Choose the format you wish to purchase the title in; if you order the Print Book, you get a free eBook copy of the same title. 
  5. Proceed with the checkout process (payment to be made using Credit Card, Debit Cart, or PayPal)
Where can I access support around an eBook? Chevron down icon Chevron up icon
  • If you experience a problem with using or installing Adobe Reader, the contact Adobe directly.
  • To view the errata for the book, see www.packtpub.com/support and view the pages for the title you have.
  • To view your account details or to download a new copy of the book go to www.packtpub.com/account
  • To contact us directly if a problem is not resolved, use www.packtpub.com/contact-us
What eBook formats do Packt support? Chevron down icon Chevron up icon

Our eBooks are currently available in a variety of formats such as PDF and ePubs. In the future, this may well change with trends and development in technology, but please note that our PDFs are not Adobe eBook Reader format, which has greater restrictions on security.

You will need to use Adobe Reader v9 or later in order to read Packt's PDF eBooks.

What are the benefits of eBooks? Chevron down icon Chevron up icon
  • You can get the information you need immediately
  • You can easily take them with you on a laptop
  • You can download them an unlimited number of times
  • You can print them out
  • They are copy-paste enabled
  • They are searchable
  • There is no password protection
  • They are lower price than print
  • They save resources and space
What is an eBook? Chevron down icon Chevron up icon

Packt eBooks are a complete electronic version of the print edition, available in PDF and ePub formats. Every piece of content down to the page numbering is the same. Because we save the costs of printing and shipping the book to you, we are able to offer eBooks at a lower cost than print editions.

When you have purchased an eBook, simply login to your account and click on the link in Your Download Area. We recommend you saving the file to your hard drive before opening it.

For optimal viewing of our eBooks, we recommend you download and install the free Adobe Reader version 9.