Positron Extensions
Overview
This unit discusses what Positron extensions are, and how to install and use them.
Goals
- Be familiar with Positron extensions.
- Know how to install and use extensions.
Reading
Introduction
In many programming languages, a lot of extra functionality comes from libraries or packages. In editors like Positron (and VS Code and others), the equivalent of packages are extensions (another term sometimes used is plugins).
Managing Extensions
Positron comes with a number of extensions already installed. To see and manage them, open the Extensions view, by clicking the extension icon on the left sidebar in Positron (it looks like 4 squares, with the top right being tilted). You’ll then see a list of extensions.
By default, you see a list of installed extensions. If you just installed Positron, some extensions might need updating. Go ahead and update them. Some might need a restart of the extension (occasionally, you might have to fully restart Positron).
Extensions can be turned on and off. Enabled extensions are shown normally. Those that are installed but disabled are grayed out. It’s generally safe to disable extensions you don’t need. Just click on the gear icon next to the extension name, then click on ‘Disable’. You can always re-enable it later.
Enabling or disabling extensions can be helpful for specific situations. For instance there are various extensions that can give you access to AI support. It could be that you don’t want to use one of them for a while, since it is getting in the way of your coding or writing. You can then disable the extension by clicking on the gear icon, then on ‘Disable’ (you have to likely restart it). You can also disable extensions for specific projects (which Positron calls workspaces). Say you have some project with sensitive data where you don’t want AI to operate on. You can turn the AI off for that project/workspace.
Finally, if you decide you don’t like an extension at all, just click on it to completely uninstall it.
Getting Extensions
You can install more extensions to get extra functionality. Getting extensions is easy. Let’s practice and install an additional extension. First, click on ‘File’ -> ‘Open File’ and open some CSV file on your computer. If you don’t have one readily available, ask your favorite AI to make you one, e.g. with a prompt like “Generate a small, realistic dataset with 10 variables and 20 observations. Return the result as a downloadable CSV file.”
The file should open in the main window, and you should see a nicely formatted data frame. This formatting is courtesy of Positron, one of the many nice features of this IDE. But let’s say we don’t want to have it pre-formatted by Positron. Click on the ‘Open as plain text file’ button on the top. This should open the CSV file as simple text, you’ll see entries separated by commas. That’s ok, but a bit hard to read. So let’s improve this with an extension.
Go to the Extensions sidebar and search for ‘Rainbow CSV’. Click on the ‘Install’ button (trust the publisher). Now go back to your open CSV file. You should now see each column in a different color, courtesy of this new extension. This makes CSV files easier to read.
This was a very basic extension. Given that Positron already nicely formats CSV files, you might not need the extension. But there are several you might want in the future, based on your specific needs.
Recall that Positron is based on VS Code. To learn a bit more about Positron extensions, and how they do and don’t differ from VS Code extensions, check out the Positron extensions page on the Positron documentation website.
Configuring Extensions
Many extensions have their own settings that allow you to adjust their behavior. Simply click on the extension you want to customize, then in the title area of the extension, next to Auto Update, click on the gear icon and go to Settings. For instance if you do that for the Quarto extension that comes pre-installed with Positron, you see a long list of settings you can change. There is for instance ‘Quarto > Render > Preview Type’. It’s by default set to internal, meaning Quarto documents are shown inside Positron. If you want to show them in the browser (we personally prefer that), you can change the setting to ‘external’. If you don’t know yet what Quarto is and what rendering and preview means, you will soon once you go through our Brief Introduction to Quarto course 😁.
Using Extensions
Like packages/libraries in R or Python or Julia, extensions can be of varying quality. In general, any additional extension makes Positron load slower and break more easily. We therefore recommend that you choose extensions cautiously. Start with those that are widely used and well supported. Add additional ones only if you really need them. You can always install them, try them, and then if they are not useful, uninstall them again.
Summary
Extensions are a way to add extra functionality to Positron. They are easy to install, use and configure. Find the extensions that make your project work as productive and efficient as possible.
Further Resources
- Positron extension development guide - this is advanced and it’s likely you’ll never need or want to develop your own extension, but it’s good to know that you could.
Test yourself
Where do you browse and install Positron extensions?
Open the Extensions sidebar via the four-square icon on the left to browse, install, and update extensions.
- True
- False
- False
- False
How can you adjust settings for a specific extension, such as changing Quarto’s preview type?
Select the extension, use the gear menu, and open Settings to configure its options (e.g., Quarto preview type).
- False
- False
- False
- True
What is the recommended approach to adding extensions to Positron?
Add extensions cautiously—start with well-supported ones and avoid unnecessary installs to keep Positron stable and fast.
- True
- False
- False
- False
Practice
- Find another extension you are interested in, either by searching online or inside the extension manager. Install it and try it out. If you don’t like it, uninstall it again.