[PYTHON] Pycharm setting memo writing

-.Exe location (default)

C:\Program Files (x86)\JetBrains\PyCharm Community Edition 2016.3.1\bin

With this, the 32-bit exe is executed by default, but by creating a shortcut for the 64-bit exe in this location, you can execute the 64-bit Pycharm from the shortcut.

(In Pycharm 2017.1.1, you can choose 32bit or 64bit at the time of installation.)

・ Code template

File -> Settings... ->Editor -> Code Style -> File and Code Templates -> Python Script

If you copy and paste this code, there will be no line break at the end, so insert a line break after pasting.

If you don't insert a line break

W292 no newline at end of file # Warning that there is no line break at the end

Will come out.

py_template.py


#!/usr/bin/env python
# -*- coding: utf-8 -*-
# Created by ${USER} on ${DATE}.




def main():
    

if __name__ == '__main__':
    main()


# Created by ${USER} on ${DATE}.

You can enter the user name and the very first creation date and time with. (When created with pycharm)

・ Font / Character size

File -> Settings... -> Editor -> Colors & Fonts -> Font

You can change the font of the editor at this location.

I use MeiryoKe_Gothic. (You need to install the font yourself?)

File -> Settings... -> Editor -> Colors & Fonts -> Console Font

You can change the console font etc. at this location.

I set the font size to about 20.

・ Color scheme

I'm using "Solarized light".

Select and download the link of the corresponding editor / IDE from this site.

.Jar from the unzipped file

Read with File-> import setting.

After that

File -> Settings... -> Editor -> Color & Font

Change the settings in Scheme.

・ Unit test

Select Alt + insert, python File in the working folder. Changed the kind: part of the window that came out to unittst. Enter a name and press OK to create a unit test file.

-Postfix Completion

This makes it easier to enter codes.

Enter a.if and it will be automatic

if a:

Will convert.

You can set the patterns that can be used by searching Live Templates in Settings.

https://www.jetbrains.com/help/pycharm/2016.3/postfix-completion.html

・ When the debugger does not work well (2017/04/07 Pycharm 2017.1)

Symptomatic treatment. I don't really understand.

Search for Python Debugger from Settings.

Change from PyQt comatible to Gevent compatible.

・ Pydev debugger: process xxxxxxx is connecting This statement is displayed if no breakpoints are set.

-Select the first completion result when completing the code

Code completion was a hassle when using other Jetbrains IDEs.

  1. Help -> Find Action
  2. Search for "Registry"
  3. Find "ide.completion.lookup.element.preselect.depends.on.context" and uncheck it.

Is it the majority who has not chosen the first option? I think it's convenient because you can decide just by pressing enter.

Ruby Code Completion auto select first

Recommended Posts

Pycharm setting memo writing
List memo writing part 2
HTML / CSS memo writing
List operation memo writing
Japanese localization setting of PyCharm
Anaconda3 × Pycharm environment construction memo
[WSL2] CentOS 8 VScode setting memo
ConoHa VPS (ubuntu 18.04) Initial setting memo
UWSGI setting memo when operating properly
Vim + Python development environment setting memo