[Improvement]: Provide a code action to break lines in a Ballerina string template #41499
Labels
Area/Completion
Issues related to Language Server Auto Completions
Team/LanguageServer
Language Server Implementation related issues. #Compiler
Type/Improvement
Description
String templates are designed to allow the user to input text as it is. Thus, unlike quoted strings, the code editor allows the user to write a string template for multiple lines. However, in some cases, the user may want to break the string template into multiple lines to restrict the character limit per line rather than having a new line in the string. It is better if the LS can provide a code action for this scenario.
Describe your problem(s)
No response
Describe your solution(s)
LS needs to provide a code action when the
cursor-point
is within the context of a string template as shown in the below code.After the execution of the code action, it can format the code above as shown below.
Related area
-> Other Area
Related issue(s) (optional)
No response
Suggested label(s) (optional)
No response
Suggested assignee(s) (optional)
No response
The text was updated successfully, but these errors were encountered: