Extending VS Code
In this chapter, we will read and write code using a screen reader with VS Code. The first step to do this is to setup Python on your computer and configure VS Code to use the right Python interpreter.
Note that the basics of Python and its installation on to your computer are out of scope for this tutorial. Please refer to information online to install Python on your computer. The following steps assume that you have a working version of Python on your computer.
VS Code offers support for various programming languages through extensions. To work with Python, you will need to download the Python extension. Please follow the steps listed below to install the Python extension in your IDE. 1. Open the command palette and select the “Extensions: Install Extensions” command. 2. You will be placed in a search box where you can search for extensions. 3. Start typing “python”. Your screen reader should announce the number of extensions that match your search term. 4. Press Tab to go to the list of extensions. This is a vertical list view with information about the extension’s name, the developer of that extension, whether the developer is verified, and a short description of that extension. For Python, the screen reader would make an announcement similar to: > Python, 2025.8.0, Verified Publisher Microsoft, Python language support with extension access points for IntelliSense (Pylance), Debugging (Python Debugger), linting, formatting, refactoring, unit tests, and more. , Rated 4.19 out of 5 stars by 617 users 2 of 1970 5. Press Enter. You will now be taken to a page with the extension’s description. The virtual cursor of your screen reader automatically gets activated in this view. You can explore information about the extension using standard web browsing commands. 6. When you are done reading the information, turn off the virtual cursor (JAWS) or switch back to focus mode (NVDA). 7. Close the extension view by pressing Control+W. 8. Currently, there are focus issues to get to the install button. A work-around seems to be to repeat steps 1 through 5. 9. Press Tab once you are on the Python extension. 10. Press Tab until you get to a toolbar that has a button to “install extension”. If the extension is already installed, you will see a “manage” button. 11. Press the install button. You will again be directed to the extension’s readme page. Press Control+W to close the readme. 12. VS Code currently does not provide an alert when an extension is installed. To make sure the extension is installed and running, restart VS Code.
Great! Now that you have added Python support to your editor, you are all set to read and write code using VS Code.
Reflection Questions: Find an Extension
Reflect on this module by asking yourself the following questions:
- Pick a task you usually perform using the terminal or other user interfaces that is related to programming. Please explain the task.
- Search the extension marketplace and tell us if there is an extension that would enable you to do this task inside VS Code. What is the extension?