Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>consolodetabsNew to Visual Studio Code? Get it now.
consolodetabs

consolodetabs

Michael Jonsson

|
16 installs
| (0) | Free
Combine all open tabs into one text document
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

consolodetabs README

This extension combines all the tabs in VScode into one new tab so you cna copy pasta it into GPT

Features

import * as vscode from 'vscode'; imports the Visual Studio Code API.

activate(context: vscode.ExtensionContext) is a function that is executed when your extension is activated. Activation events are specified in the extension's package.json.

let disposable = vscode.commands.registerCommand('extension.combineTabs', async () => {...}); registers a new command with the command ID 'extension.combineTabs'. This function is asynchronous because it uses the await keyword to wait for vscode.workspace.openTextDocument to resolve.

Inside the registered command, it first checks if there is an active text editor. If not, it shows an error message and stops the function.

Then, it loops over all open text documents (vscode.workspace.textDocuments) and combines their text into one string (allDocumentsText), adding two newlines between each document's text.

It then opens a new text document with the combined text using vscode.workspace.openTextDocument.

Lastly, it opens the new document in a new editor tab with vscode.window.showTextDocument.

context.subscriptions.push(disposable); adds the disposable to the context's subscriptions so it can be automatically disposed of when the extension is deactivated.

deactivate() is a function that is executed when your extension is deactivated. In this case, it doesn't do anything.

Requirements

If you have any requirements or dependencies, add a section describing those and how to install and configure them.

Extension Settings

Include if your extension adds any VS Code settings through the contributes.configuration extension point.

For example:

This extension contributes the following settings:

  • myExtension.enable: Enable/disable this extension.
  • myExtension.thing: Set to blah to do something.

Known Issues

Calling out known issues can help limit users opening duplicate issues against your extension.

Release Notes

Users appreciate release notes as you update your extension.

1.0.0

Initial release of ...

1.0.1

Fixed issue #.

1.1.0

Added features X, Y, and Z.


Following extension guidelines

Ensure that you've read through the extensions guidelines and follow the best practices for creating your extension.

  • Extension Guidelines

Working with Markdown

You can author your README using Visual Studio Code. Here are some useful editor keyboard shortcuts:

  • Split the editor (Cmd+\ on macOS or Ctrl+\ on Windows and Linux).
  • Toggle preview (Shift+Cmd+V on macOS or Shift+Ctrl+V on Windows and Linux).
  • Press Ctrl+Space (Windows, Linux, macOS) to see a list of Markdown snippets.

For more information

  • Visual Studio Code's Markdown Support
  • Markdown Syntax Reference

Enjoy!

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft