Closed
Description
openedon Apr 24, 2023
Test for microsoft/TypeScript#51832
- Mac @eleanorjboyd
- Linux @deepak1556
- Windows @luabud
Complexity: 3
Summary
TS 5.1 enables linked editing for JSX tags. This means you can place your cursor on one tag and start editing to update the matching tag
Testing
- Enable linked editing:
"editor.linkedEditing": true
npm install typescript@next
and switch your workspace to use TypeScript 5.1- In a
.tsx
or.jsx
file, try making linked edits to jsx tags
Some things to test:
- Linked editing should stop once you type space or a non tag character
- Linked editing should only effect the matching tags
- Linked editing should not be activated when you are on an attribute
- Linked editing should work when the cursor is on either the opening or closing tag
- Pressing escape should exit linked editing mode
- Linked editing should work for qualified names, like
myNamespace.Component
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment