DEV Community

Cover image for Column selection: simultaneous multi-line editing with IntelliJ!
scottshipp
scottshipp

Posted on

4

Column selection: simultaneous multi-line editing with IntelliJ!

Did you know that IntelliJ IDEA can be used to edit multiple lines at once with its column selection feature!?

And..it's really easy. Simply hold down Alt or Option, depending on which OS you use, and drag up- or downward.

You can see this in action in the following video:

This can be handy in all kinds of situations from changing the access modifiers of multiple variables at once to adding bullet points in front of multiple lines of Markdown.

Happy IntelliJ-ing!

Image of Datadog

The Essential Toolkit for Front-end Developers

Take a user-centric approach to front-end monitoring that evolves alongside increasingly complex frameworks and single-page applications.

Get The Kit

Top comments (1)

Collapse
 
brewinstallbuzzwords profile image
Adam Davis

I do this all the time in vscode, except instead of alt+click you click the mouse wheel

A Workflow Copilot. Tailored to You.

Pieces.app image

Our desktop app, with its intelligent copilot, streamlines coding by generating snippets, extracting code from screenshots, and accelerating problem-solving.

Read the docs