Start VS Code and Open a Folder using the File -> Open folder menu item. Create this folder where you normally place your project files, this folder should be empty initially. In this example I am using a folder called “DBConnect”. We will be working inside a single project folder to create the environment and Python file. For this example we are install the “Python” extension by Microsoft which includes functions like IntelliSense, code formatting, Debugging and more.Ĭlick the “ Extensions” icon and install:īe sure to experiment with other VS Code extensions, they can save time and improve your coding experience. Part of Visual Studio Code features is that it has many extension available, including extensions for Python. The result should look like “Python 3.9.x” VSCode Python Extensions On a command line you should be able to run this to find the Python version: python -V This example uses Python 3.9 so this needs to be installed and setup in your default path. We’re going to work inside VS Code using the terminal to execute commands. ![]() ![]() Instance of Mysql installed with a login.The instructions should be similar on Windows, Mac and Linux but will not be exactly the same. We will also setup a Python environment and install the MySQL Connector needed to connect to MySQL and MariaDB. ![]() In this example we will be connecting to a MySQL database using the Visual Studio Code IDE.
0 Comments
Leave a Reply. |