Skip to content

Conversation

@kheif
Copy link
Contributor

@kheif kheif commented Dec 24, 2025

Closes #250054

Description

This PR implements two new commands to improve editor tab management:

  • workbench.action.moveEditorToStart: Moves the active editor to the beginning of the group.
  • workbench.action.moveEditorToEnd: Moves the active editor to the end of the group.

Verification

  1. Open multiple editors in a group.
  2. Select an editor in the middle.
  3. Open Command Palette (Cmd+Shift+P or Ctrl+Shift+P).
  4. Run "Move Editor to Start" -> Verify the tab moves to index 0.
  5. Run "Move Editor to End" -> Verify the tab moves to the last index.

editor-movement

Implements actions to move the active editor to the start (index 0) or end of the group. Both commands are registered in the Command Palette as requested, avoiding context menu clutter.
Copilot AI review requested due to automatic review settings December 24, 2025 23:55
@vs-code-engineering
Copy link

vs-code-engineering bot commented Dec 24, 2025

📬 CODENOTIFY

The following users are being notified based on files changed in this PR:

@bpasero

Matched files:

  • src/vs/workbench/browser/parts/editor/editor.contribution.ts
  • src/vs/workbench/browser/parts/editor/editorActions.ts

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR adds two new commands for improved editor tab management within a group: moving the active editor to the beginning or end of the tab order.

Key Changes:

  • Adds MoveEditorToStartAction command to move the active editor to index 0
  • Adds MoveEditorToEndAction command to move the active editor to the last index
  • Both commands are registered and accessible via the Command Palette (F1)

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
src/vs/workbench/browser/parts/editor/editorActions.ts Implements two new action classes that execute the move editor command with to: 'first' and to: 'last' arguments
src/vs/workbench/browser/parts/editor/editor.contribution.ts Imports and registers the new actions to make them available in the workbench

@bpasero bpasero assigned bpasero and unassigned rwoll Dec 27, 2025
Copy link
Member

@bpasero bpasero left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@bpasero bpasero merged commit dcce2aa into microsoft:main Dec 28, 2025
17 checks passed
@kheif kheif deleted the feature/move-editor-to-start branch December 30, 2025 15:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Move Editor all the way to start or end command in editor group

4 participants