![]() Next, open up the VSCode settings by navigating to File -> Preferences -> Settings on Windows or Code -> Preferences -> Settings on macOS. In the new terminal window opened at the bottom of the page, type python -m pip install black. To install Black, open a Terminal window within VSCode by going to Terminal -> New Terminal at the top of the page. ![]() Install it.Ī second extension to add is Black, which is a Python code formatter that has quickly become the default within the Python community. Enter “python” which will bring up the Microsoft extension as the first result. This launches a search bar for the extensions marketplace. On Windows, navigate to File -> Preferences -> Extensions or on macOS Code -> Preferences -> Extensions. If you’re not already using a text editor, download and install VSCode from the official website.Īn optional–but highly recommended–additional step is to take advance of the large ecosystem of extensions available on VSCode. There are many modern text editors available but a very popular one is Visual Studio Code, which is free, easy to install, and enjoys widespread popularity. The computer doesn’t care what text editor you use–the end result is just code–but a good text editor can provide helpful hints and catch typos for you. The command line is where we execute commands for our programs but a text editor is where actual code is written. Type "help", "copyright", "credits" or "license" for more information. It will open a new window with a dark blue background and a blinking cursor after the > prompt. To access it, locate the taskbar on the bottom of the screen next to the Windows button and type in “powershell” to launch the app. ![]() On Windows, the built-in terminal and shell are both called PowerShell. It is easy to be confused by these terms initially but they all essentially mean the same thing: the command line is where we run and execute text-only commands on our computer. ![]() Technically speaking, the terminal is the program that opens up a new window to access the command line, a console is a text-based application, the shell is the program that runs commands on the underlying operating system, and the prompt is where commands are typed and run. In practice, multiple terms are used to refer to the command line: Command Line Interface (CLI), console, terminal, shell, or prompt. It harkens back to the early days of computer interfaces before the mouse and graphical user interfaces became the norm. The command line is a text-only interface that is used frequently by developers. Otherwise read through to make sure your computer is ready for professional Django development and success in the rest of this book. It is similar to the set up guides in both Django for Beginners and Django for APIs so if you are already familiar with the command line, have the latest version of Python installed, know how to create virtual environments, and use Git you can consider this chapter optional. This chapter covers how to properly configure your Windows or macOS computer to work on Django projects. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |