Skip to content

davified/ide-productivity

Repository files navigation

IDE productivity tips tutorial

An exercise to demonstrate how to use the features of an IDE (PyCharm and VS Code) to code effectively.

Setup

Run the go script to install pre-requisite dependencies. The go script will install Python 3 and Poetry, and create a virtual environment on the host. This will make it easier to configure our IDE to know about the Python interpreter for this project.

# mac users
scripts/go/go-mac.sh

# linux users
scripts/go/go-linux-ubuntu.sh

# windows
# 1. Download and install Python3 if not installed: https://www.python.org/downloads/release/python-31011/
#    - During installation, when prompted, select "Add Python to PATH"
# 2. In Windows explorer/Search, go 'Manage App Execution Aliases' and turn off 'App Installer' for python. This resolves the issue where the `python` executable is not found in the PATH
# 3. Run the go script in the Powershell or Command Prompt Terminal
.\scripts\go\go-windows.bat
# Note: if you see a HTTPSConnectionPool read timed out error, just run this command a few more times until poetry install succeeds

Configure your IDE to use the python virtual environment created in the go script.

Tasks that you can run

# Activate virtual environment
poetry shell

# Exercise 0: warm up
python src/ide_productivity/0_hello_ide.py

# Exercise 1: IntelliSense
python src/ide_productivity/1_intellisense.py

# Exercise 2: Refactoring
python src/ide_productivity/2_refactoring.py

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published