You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Does this issue occur when all extensions are disabled?: Yes/No
VS Code Version: 1.132.1
OS Version: Sonoma 14.0 (23A344)
Steps to Reproduce:
Start typing a prop name in a JSX/TSX component.
VS Code shows an autocomplete suggestion with a default value.
Press Enter/Tab to accept the suggestion.
Actual Behavior:
Case 1 — Boolean props:
After accepting the suggestion, the prop name is inserted. You manually type={ 👎
When you press Delete on {|}, both braces are removed together 👍
Example: wrap={|} → delete → wrap=| 👍
Case 2 — String props
After accepting the suggestion, VS Code automatically inserts ="|" 👍
When you press Delete on "|", only the closing quote is removed, leaving the opening quote 👎
Example: align="" → delete → align=|" 👎
qdwqdw.mov
Expected Behavior:
For boolean props: ={} should be automatically added after accepting the suggestion (just like ="" is automatically added for strings).
For string props: When pressing Delete on "", both quotes should be removed together (just like braces are removed for booleans)
This issue might go unnoticed if VS Code allowed different quote styles for TSX and TS files. Currently, the quote setting applies globally, forcing developers to constantly delete and re-type quotes on string props in TSX, which makes the inconsistent deletion behavior much more noticeable and frustrating.
Does this issue occur when all extensions are disabled?: Yes/No
VS Code Version: 1.132.1
OS Version: Sonoma 14.0 (23A344)
Steps to Reproduce:
Actual Behavior:
Case 1 — Boolean props:
={👎Deleteon{|}, both braces are removed together 👍Example:
wrap={|}→delete→wrap=|👍Case 2 — String props
="|"👍"|", only the closing quote is removed, leaving the opening quote 👎Example:
align=""→delete→align=|"👎qdwqdw.mov
Expected Behavior:
For boolean props:
={}should be automatically added after accepting the suggestion (just like=""is automatically added for strings).For string props: When pressing
Deleteon"", both quotes should be removed together (just like braces are removed for booleans)This issue might go unnoticed if VS Code allowed different quote styles for TSX and TS files. Currently, the quote setting applies globally, forcing developers to constantly delete and re-type quotes on string props in TSX, which makes the inconsistent deletion behavior much more noticeable and frustrating.