Use the Ctrl + . or Ctrl + ~ shortcut to invoke the Code Actions Menu.
Select Introduce Format Item from the menu.
After execution, the Code Provider creates a string.Format call with the selected part extracted into a format item. If the string is already a format string, the selected part will be added as a new format item to the existing composite formatting method.