VSCode

Working with text files can be a great way to start programming, but if you're ready to take your coding skills to the next level, it's time to kick it up a notch by using an Integrated Development Environment (IDE). For me, I've chosen Visual Studio Code (VSCode) as my go-to IDE.

To get started with VSCode these following steps will help you set up your development environment. 

Installing VSCode.

To install Visual Studio Code (VS Code), follow these steps:

That's it! You now have Visual Studio Code installed on your system and are ready to use it for coding and development tasks.

Recommended extensions

In order to supercharge your coding experience with Visual Studio Code (VSCode), I highly recommend installing a set of essential extensions. Below is a list of the recommended extensions that I personally use and find incredibly valuable

These extensions enhance the functionality of Visual Studio Code for specific development tasks and languages, making it a versatile and powerful code editor. You can install them directly from the Visual Studio Code Marketplace by clicking the provided links or by searching for the extension names within VS Code itself.

Creating a new project/workspace.

Create a new project or workspace in Visual Studio Code (VS Code):

Creating a workspace in VS Code allows you to group related projects, folders, and files together, making it convenient for managing and working on complex development tasks. You can switch between different workspaces as needed, and each workspace can have its own unique settings and extensions.

Setting up a virtual environment for Python.

Setting up a virtual environment for Python is a good practice because it allows you to isolate project dependencies and avoid conflicts between different Python projects. Here's how you can set up a virtual environment:

python --version


python -m venv venv


On Windows:
venv\Scripts\activate

On macOS and Linux:
source venv/bin/activate


Install FastAPI and Uvicorn:
pip install fastapi uvicorn

   This command will install both FastAPI and Uvicorn along with any required dependencies.


FastAPI:
fastapi --version

Uvicorn:
uvicorn --version

You should see version information for each package if the installation was successful.


deactivate

This will return you to the system's global Python environment.

Remember to activate your virtual environment whenever you work on a project, and deactivate it when you're done. This helps keep your project dependencies separate and organized.