Skip to content

Ctrl-t (transpose) command inserts extra character. #8574

@gwk

Description

@gwk
  • VSCode Version:
    Version 1.3.0-insider (1.3.0-insider)
    a21c123
    2016-06-30T05:01:53.185Z
  • OS Version:
    OSX 10.11.5 (15F34)

Steps to Reproduce:

  1. In a new document, type 'ab'.
  2. Place the editor caret between the two characters.
  3. Press ctrl-t.

In any standard OSX text area, this results in the text 'ba'.
In VS Code, the result is 'bab', which I cannot imagine justifying as desirable.

Note that there is a separate behavior when the caret is at end-of-line: in the EOL case, the previous two characters are transposed. VS Code handles this correctly; it is only the "in between" case that is broken (as far as I can tell). Any fix should make sure to test both cases.

Metadata

Metadata

Assignees

Labels

feature-requestRequest for new features or functionalitymacosIssues with VS Code on MAC/OS Xverification-neededVerification of issue is requestedverifiedVerification succeeded

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions