Sublime Forum

Select all misspelled words

#1

In Sublime, is there a way to select all misspelled words, so they can be copied and pasted into a new document?

There is a method described here:
https://superuser.com/questions/1052497/select-all-mispelled-words-in-sublime-text-at-once

However, it is from 2016, and I think it is out of date, as when I try it, it doesn’t work.

Thanks!

0 Likes

#2

Have you followed all the instructions properly ? How are you running the command ? Any errors in the console ?

0 Likes

#3

Yup, I’ve followed the instructions exactly, twice. I also restarted my machine after both attempts, just in case that helps with loading the plugin.

I have tried three different ways to run the command:

  1. Using a key binding:
    I have put the following in Default (OSX).sublime-keymap:

{ “keys”: [“ctrl+alt+s”], “command”: “select_all_spelling_errors” }

  1. Using the console:
    I enter the following in the console:

view.run_command(‘select_all_spelling_errors’)

  1. Pressing Shift+CMD+P to bring up the command palette and then selecting “Select All Spelling Errors”.

In all instances nothing happens. No error message is displayed.

The console doesn’t show any errors.

The only thing I can think of is that the code in Stackoverflow has indents. Would that create problems?

0 Likes

#4

Can you paste the full console output?

0 Likes

#5

I tried the Stackoverflow code again, but this time I removed all the indents. And it seems to be working now! I guess the formatting on Stackoverflow breaks things.

0 Likes