Code Monkey home page Code Monkey logo

select-compare-tabs's Introduction

VSCode: Select Compare Tabs

Adds select compare options to tabs in the editor for quicker access to diff functionality as well as ability to swap files in diff editor.

Features

  • Adds "Select For Compare" to file editor tabs.
  • Adds "Compare With Selected" to file editor tabs.
  • Adds "Swap" button to diff editor view to switch file positions in the diff panel.

Usage

  1. Right-click on a file tab in the editor.
  2. Choose "Select for compare" to mark the file for comparison.
  3. Right-click on another file tab in the editor.
  4. Choose "Compare with selected" to compare the two files.

Example

Select Compare Tabs

Extension Settings

This extension contributes the following commands:

  • select-compare-extended.selectForCompare: Select a file for comparison.
  • select-compare-extended.compareWithSelected: Compare the selected file with another file.
  • select-compare-extended.swapFiles: Swap files in diff editor.

License

This extension is licensed under the MIT License.

Contributing and Support

The extension is developed and maintained by outofsync42. If you encounter any issues or have suggestions for improvements, please open an issue on the project's GitHub repository.

select-compare-tabs's People

Contributors

outofsync42 avatar

Stargazers

chao31 avatar alexiessaenz avatar Sumit Kumar Singh avatar Hugo Schmitt avatar vancaem avatar

Watchers

 avatar

Forkers

ariccb

select-compare-tabs's Issues

Support for use other than from tab menu

Hi
Thanks for the useful extension.
However for keyboard use it doesn't seem to work so well.
There are commands in the Command Palette from the extension ("File: Select for compare" and "File: Compare with Selected") but they don't seem to do anything, when run from the relevant editor tabs.
I imagine that this means that there's no point binding them to keys.
Would be happy if you could fix that if you have an opportunity to do so; I'm sorry that it's not feasible for me to offer the code improvements myself.
Thanks

p.s. I imagine that you noticed that VS Code now has a switch-sides button as standard so you could remove the one the extension adds

Swap sides not work

Swap sides not work, there is error

Cannot read properties of undefined (reading 'document')

image

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.