Join/Split Lines

The Join/Split Lines plugin can join shorter lines into one longer line, or can split a long line into multiple shorter lines.

To enable the plugin:

  1. Press the menu button in the top-right corner of the window and select Preferences ▸ Plugins.

  2. Select Join/Split Lines to enable the plugin.

To join multiple lines into one longer line:

  1. Select the lines that you want to join. To do this, you can use the mouse, or you can press Shift+Up Arrow or Shift+Down Arrow.

  2. Press Ctrl+J.

    The lines that you selected will be joined into one longer line.

To split one line into multiple lines:

  1. Select the line that you want to split by placing your cursor anywhere on that line.

  2. Press Ctrl+Shift+J.

    The line will be split into multiple lines. Spaces are used to determine where it is safe to split a line, and the length of each line will not exceed 80 characters.