jsigman / lsp-mc

Emacs minor mode for using multiple-cursors within LSP mode

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

LSP Multiple Cursors

Banner

About

This repository contains a minor mode for emacs editing, lsp-mc. The minor mode should be activated with lsp-mode, and implements a function for using multiple-cursors on highlighted text. This can be much more useful than just searching and replacing raw text, and is lightning fast to activate, requiring a single keystroke.

Installation

The easiest way to install right now is with straight.el

(straight-use-package
 '(lsp-mc :type git :host github :repo "jsigman/lsp-mc"))
(require 'lsp-mc)
(add-hook 'lsp-mode-hook 'lsp-mc-mode)

Usage

By default, lsp-mc-/mark-all-highlighted is bound to M-S

Related

This is very similar in ways to lsp-iedit.el. I find multiple-cursors to be more intuitive and pleasing to use than iedit.

Acknowledgments

Thanks to yyoncho for providing some basics for this function

About

Emacs minor mode for using multiple-cursors within LSP mode

License:GNU General Public License v3.0


Languages

Language:Emacs Lisp 100.0%