ReSharper 2016.3 Help

Joining Lines

ReSharper | Edit | Join Lines
ReSharper_JoinLines

ReSharper makes it possible to append the next line after the current one and join several selected lines into one, accurately arranging spaces.

To append the next line after the line where your caret is, or to join all selected lines into one line, do one of the following:

  • Choose ReSharper | Edit | Join Lines in the main menu.
  • If you are using the IntelliJ IDEA/ReSharper 2.x keymap, press Ctrl+Shift+J. Alternatively, you can assign a desired shortcut to the ReSharper_JoinLines command in Visual Studio options (Tools | Options | Environment | Keyboard).
  • Press Alt+Enter and start typing 'join lines' to invoke the command with the Go to action feature.

This feature is supported in the following languages/technologies:

C# VB.NET C++ HTML ASPX Razor JavaScript TypeScript CSS XML XAML RESX Build Scripts Protobuf JSON
/help/img/dotnet/2016.3/check.svg /help/img/dotnet/2016.3/check.svg /help/img/dotnet/2016.3/check.svg /help/img/dotnet/2016.3/check.svg /help/img/dotnet/2016.3/check.svg /help/img/dotnet/2016.3/check.svg /help/img/dotnet/2016.3/check.svg /help/img/dotnet/2016.3/check.svg /help/img/dotnet/2016.3/check.svg /help/img/dotnet/2016.3/check.svg /help/img/dotnet/2016.3/check.svg /help/img/dotnet/2016.3/check.svg /help/img/dotnet/2016.3/check.svg /help/img/dotnet/2016.3/check.svg /help/img/dotnet/2016.3/check.svg

The instructions and examples given here address the use of the feature in C#. For details specific to other languages, see corresponding topics in the ReSharper by Language section. Specifically:

See Also

Last modified: 3 April 2017