These surprising Visual Studio Code extensions aren't just for writing and editing codeโthough they'll also help you do that.
Visual Studio Code is a terrific software development environment, and not only because it has excellent code-editing features and language support. Thanks to its rich culture of extensions, VS Code supports many tasks besides editing. Youโll find VS Code extensions for everything from a speedier way to navigate the editor to effortlessly inserting placeholder text and images.
Here are 11 VS Code extensions that you might want to consider when putting together your development environment. Some could be extremely useful additions to your toolkit, and even part of your daily workflow.ย
Dashboard
Users of Chrome and Firefox ought to be familiar with the โspeed dialโ menu displayed by default when you open a blank tab. The Dashboard extension does something similar for VS Code, allowing you to access your most common projects or workspaces quickly. You can easily add, edit, remove, or re-order projects on your Dashboard, and you can use colors, gradients, or emojis to set project buttons apart. Dashboard uses an icon to indicate a project is part of a Git repository.
IDG
Figure 1. Frequently used projects can be pinned to Dashboardโs launcher page, placed in custom groups, and assigned custom colors.
Data Preview
Visual Studio Code can work as an environment for data preparation and data wrangling as well as authoring and executing code. But if youโre working with anything more sophisticated than the simplest files, the built-in file handlers for data formats wonโt cut it. Data Preview adds handlers, visualization tools, and management functions for a wide variety of common formatsโnot only JSON or CSV, but also Excel, Apache Parquet, Arrow, Avro, YAML, and other configuration files. Data Preview uses a streaming data analytics library written in WebAssembly to handle the heavy lifting, so even large files (10MB or more) arenโt an issue.
IDG
Figure 2. Data Preview allows interactive viewing and manipulation of data in many common formats, including CSV, JSON, and YAML.ย
Placeholder Images
If you need placeholder images for a projectโwhich is likely for web development, UI mockups, or documentationโlook no further than Placeholder Images. This VS Code extension lets you insert images as HTML references from a number of popular free-to-use image providers, including stock-image services like Unsplash. To select an image, just provide a target size along with the provider, and a random image that fits the bill will be chosen from the provider in question.
IDG
Figure 3. Placeholder Images taps many common sources of free-to-use images to insert placeholder images as HTML references, or it can copy image URLs to the clipboard.
VSCode Faker
Sometimes you just need some placeholder textโa fake address line, a fake phone number, or a quick line of lorem ipsum. Maybe youโre constructing an HTML template example. Maybe youโre substituting fake data with live data for a screenshot or a config file. VSCode Faker generates fake data of all kinds, fast, without you having to think about it. VSCode Faker can even be set to generate fake data for a specific locale, as long as you have the locale ID.
IDG
Figure 4. โLorem ipsumโ text generated with VSCode Faker. VSCode Fakerโs fake text can be single sentences or whole paragraphs.
WordCounter
Word counts and reading time are super useful for blog posts and news articles, so why stop there? Wouldnโt it be nice to have some idea of how long it will take to digest a README, or to know at a glance the current word count of the documentation youโre writing? WordCounter places a detailed word, character, line, paragraph, and reading-time meter in the VS Code status bar. Itโs highly configurable; you can change what constitutes a word delimiter, for instance, or the count of words per minute used to calculate your reading time.
IDG
Figure 5. WordCounter adds detailed readability statistics and word-count metrics to the status bar. All of its measurements can be configured.
Jumpy
Fans of modal editors love the way they can dive across a line, a page, or a document to some specific logical point with just a couple of keystrokes and no mousing about. Jumpy adds the ability to move quickly through your code with nothing but the keyboard.
When you activate Jumpy, your code onscreen is decorated at key points (line breaks, beginnings of expressions, etc.) with two-letter code labels. To go to a given label, just type the two-letter code. You can customize the symbols used for the codes or use the defaults, which are A through Z and 0 through 9.
Note that by default Jumpy does not have any keybinding. You have to set one up yourself to use it, which helps to avoid conflicts with other extensions.
IDG
Figure 6. Jumpy in line mode. Typing one of the two-letter codes shown will move the cursor to that point in the file.
Toggle
VS Codeโs settings can be a labyrinth to spelunk through and modify. Itโs even less fun if youโre looking for the same settings time and again, to toggle them on or off depending on the case.
Peng Lvโs Toggle extension lets you take any VS Code setting and assign a keybinding to it. Tap the key, and you swap the value of the setting; itโs that simple. You can even assign multiple settings to be toggled by the same keybinding.
IDG
Figure 7. With Toggle, you can expose and change options buried deep inside VS Codeโs settings with the press of a hotkey.
The one downside to Toggle is you have to manually configure the keybind file, but that isnโt too hard. Use Preferences: Open Keyboard Shortcuts (JSON) to create or open the file, paste in the example provided, and use the keybinding reference to set up your bindings.
Text Power Tools
VS Code is, at heart, a text editor. โTextโ doesnโt just mean program code; it can mean documentation in a variety of formats including plain text. The Text Power Tools extension equips VS Code with a battery of text processing utilities not included by default.
IDG
Figure 8. Type โtptโ in the VS Code command palette to see the options available for altering a text selection in Text Power Tools. There are many more options than Iโve shown here.
Among the tools available in this collection are: filter lines in a file by regular expressions; change or swap the case of selected text; prepend or append text to lines or regions; sort text regions by various criteria; intelligently paste clipboard data in a variety of formats; generate placeholder data in various forms; change encodings for selections; alter Unicode normalization forms; and many more.
One very useful add-on is โtext slotsโโa way to quickly store up to five clipboard entries and re-use them. If you arenโt already using an enhanced clipboard utility, this is a handy way to get the same functionality.
SQLTools
When working with databases, youโve got a few choices: the databaseโs command-line interface; a programming language with a data access library; or a โworkbenchโ application with a CLI and GUI. That last option is the most user-friendly and convenient. SQLTools turns VS Code into a simple database workbench system, with sub-extensions for working with common databases such as SQLite, MySQL, MariaDB, PostgreSQL, and many more. Its auto-suggest functions make query writing easier, although it doesnโt allow you to interactively edit data via a spreadsheet-like interface as found in some workbench apps.
IDG
Figure 9.ย SQLTools provides a workbench environment for many different databases. The user installs other add-ons to provide connectivity for each database type.
CodeSnap
Sometimes the fastest and most direct way to share your code is to take a screenshot of it. CodeSnap lets you do this directly in VS Code without needing any external tools. Select the code in question, press the keybinding you assign, and the code snippet is saved to a file or copied to the clipboard. Whatever theme you have currently enabled is used for the screenshot as well. Forks of CodeSnap have proliferated since it was released, with minor variations on its functions. One example is CodeSnap-Plus, which adds line highlighting in the screenshot.
IDG
Figure 10.ย CodeSnap renders code snippets as images, with syntax highlighting based on the VS Code theme currently in use.
CodeToHTML
Many folks who share code use a paste service, which automatically adds syntax highlighting for common languages. What if you want to share your code as HTML, but donโt have a mechanism for highlighting syntaxโfor example, in a blog? The CodeToHTML extension takes any code snippet and converts it into HTML, with highlighting automatically embedded into the snippet by way of inline style information.
IDG
Figure 11.ย CodeToHTML renders code as HTML with syntax highlighting included.


