Straighten Quotes

Posted by agiletortoise, Last update 30 days ago

Convert smart (slanted) quotes to straight quotes.

Steps

  • script

    // change quote type
    let s = editor.getSelectedText();
    
    s = s.replace("“", "\"");
    s = s.replace("”", "\"");
    s = s.replace("‘", "'");
    s = s.replace("’", "'");
    
    editor.setSelectedText(s);

Options

  • After Success Nothing
    Notification Error
    Log Level Error
Actions available in the Action Directory are uploaded by community members. Use appropriate caution reviewing downloaded actions before use.