gitmyhub

semi-sublime

Python ★ 33 updated 11y ago

Sublime Text 3 plugin for Semi

This is a plugin for Sublime Text (a popular code editor) that automatically adds or removes semicolons from JavaScript code. If you're writing JavaScript and want to switch between a style with semicolons at the end of lines and one without, this tool does that conversion for you instantly, rather than having to manually edit each line.

Here's how it works: the plugin connects to a separate tool called Semi (also made by the same author) that handles the actual logic of identifying where semicolons should go or be removed. When you press a keyboard shortcut in Sublime Text, the plugin sends your JavaScript code to Semi, which processes it and returns the updated version. You need Node.js installed on your computer for this to work, since that's the runtime environment Semi uses.

In practice, you'd use this if you're working on a JavaScript project that's changing its code style—maybe your team decided to drop semicolons, or you're adopting a new linter like Prettier that has different formatting rules. Instead of manually hunting through your files, you just select your code and hit Cmd+Shift+A (or Ctrl+Shift+A on Windows/Linux) to add semicolons, or Cmd+Shift+R to remove them. It's a small quality-of-life tool that saves time on formatting busywork.

The setup is straightforward: install it like any other Sublime Text plugin, make sure Node.js is on your computer, and optionally tell the plugin where to find Node if it's not in the standard location. The project is quite lightweight—it's just a bridge between your editor and the Semi formatter—and has modest popularity with 33 stars, suggesting it fills a niche need rather than being a mainstream utility.