<html><head><link rel="canonical" href="https://www.jetbrains.com/help/writerside/multiple-cursors.html.md/" data-react-helmet="true"/></head><body># Multiple cursors

## Change the width for a few images using multiple carets

From this tutorial, you will learn to edit a few markup elements simultaneously using multiple carets.

&gt; **Note:**
&gt; Markup elements must be formatted and structured in the same way to benefit from this feature.

Let's assume you've agreed with colleagues and added an image size that displays optimally on all platforms into a style guide. Now you need to change it for many images, which may be time-consuming.

In the example below, we have images for various documentation instances.

## Select multiple occurrences and edit them

Procedure:

1. Press `Ctrl+F` (Windows), `⌘ F` (macOS), `⌘ F` (IntelliJ IDEA Classic (macOS)), `⌘ F` (macOS System Shortcuts), `Ctrl+F` (XWin), `Ctrl+F` (GNOME), `Ctrl+F` (KDE), `Ctrl+Alt+S` (Emacs), `Ctrl+F` (Sublime Text), `⌘ F` (Sublime Text (macOS)), `Ctrl+F` (NetBeans), `Ctrl+F` (Visual Studio), `⌘ F` (Visual Studio (macOS)), `Ctrl+F` (Eclipse), `Ctrl+F` (Eclipse (macOS)) or select `Edit | Find | Find`. In the search pane at the top, type img.

2. Press `Ctrl+Alt+Shift+J` (Windows), `⌘ ⌃ G` (macOS), `⌘ ⌃ G` (IntelliJ IDEA Classic (macOS)), `⌘ ⌃ G` (macOS System Shortcuts), `Ctrl+Alt+Shift+J` (XWin), `Ctrl+Alt+Shift+J` (GNOME), `Ctrl+Alt+Shift+J` (KDE), `Ctrl+Alt+Shift+J` (Emacs), `Alt+F3` (Sublime Text), `⌘ ⌃ G` (Sublime Text (macOS)), `Ctrl+Alt+Shift+J` (NetBeans), `Alt+Shift+;` (Visual Studio), `⌥ ⇧ ;` (Visual Studio (macOS)), `Ctrl+Alt+Y` (Eclipse), `⌘ ⌃ G` (Eclipse (macOS)) or or click Select All Occurrences ![Select All Occurrences](https://resources.jetbrains.com/help/img/writerside/CheckMulticaret.png) on the toolbar.

3. Edit the width attribute in a few places.

![Multiple carets](https://resources.jetbrains.com/help/img/writerside/Multiple_cursors.png)

We've edited a few image elements simultaneously using multiple carets in this tutorial.

This may also be useful when you need to add or change any attribute in all markup elements in the document. For example, change the border type for an image or video or the table style for a few tables in a reference.

There are more ways to add and use multiple carets, read about them in the [IntelliJ IDEA help.](https://www.jetbrains.com/help/idea/multicursor.html)

</body></html>