Skip to content

Commit

Permalink
update README.md with new usage
Browse files Browse the repository at this point in the history
  • Loading branch information
dcahill committed Oct 10, 2023
1 parent ff21296 commit 8ec501f
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 14 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@

All notable changes to the "Auto Select Pasted Text" extension will be documented in this file.

## [0.2.1] - 2023-10-10
- Updated README.md

## [0.2.0] - 2023-10-09
- Added tracking to distinguish between auto-selection vs manual selection.
- Added logic to not perform auto actions on manually selected text.
Expand Down
39 changes: 26 additions & 13 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,31 +1,44 @@
# Auto Select Pasted Text for VSCode

Elevate your VSCode experience with **Auto Select Pasted Text**. Especially useful when copying and pasting code samples from the internet or ChatGPT. Gone are the days of manual re-selection post-pasting in order to properly indent. With this extension, every time you paste content, its instantly selected, streamlining your editing process and saving you precious seconds—time that quickly adds up in coding sessions.
Boost your VSCode experience with **Auto Select Pasted Text**. This extension is perfect for developers frequently copying and pasting code snippets, especially from online sources or ChatGPT. Eliminate the manual re-selection hassle post-pasting. The extension ensures that every time you paste content, it's instantly selected, making the editing process more streamlined and efficient.

## 🌟 Features

- 📌 **Instant Highlight**: No more manual re-selection. Every time you paste text, it gets highlighted immediately, allowing for instantaneous operations like indenting, commenting, or applying other formatting.

- 💼 **Smart Pasting**: Worried about repeated pasting? We’ve got you covered. This extension intelligently identifies repetitive pasting actions and appends content without overriding previous pastes.
- 📌 **Instant Highlight**: After pasting, your text is automatically highlighted. This allows for immediate operations, such as indenting, commenting, or other formatting tasks.

- 📦 **Seamless Integration**: Works behind the scenes. No configuration required. Paste as you normally would, and let the magic happen.
- 💼 **Smart Pasting & Deselection**: If you paste and then type, the extension smartly deselects the pasted content and positions the cursor at the end. This ensures a seamless transition between pasting and continuing to type. Moreover, the extension recognizes repeated pasting actions and appends content without overwriting the previous pastes.

- 📖 **Logging & Debugging**: Behind the scenes, the extension logs significant events, such as activations, paste commands, and selection changes. This is invaluable for developers seeking insights or debugging the extension's behavior.

- 📦 **Seamless Integration**: Experience the magic without any configuration. Just install, and you're good to go!

## 🔧 Installation

1. Launch **VSCode**.
2. Navigate to the Extensions view (`Ctrl + Shift + X`).
3. In the search bar, type "Auto Select Pasted Text".
4. Click on **Install**.
5. Dive into a frictionless editing experience!
1. Open **VSCode**.
2. Access the Extensions view with `Ctrl + Shift + X`.
3. Search for "Auto Select Pasted Text".
4. Hit **Install**.
5. Start enjoying a refined editing experience!

## 🛠 Usage

Simply paste your content. Whether it's code snippets, text, or data, it will be automatically highlighted, allowing for immediate subsequent operations.
Whenever you paste content, it will be automatically highlighted. This auto-selection functionality is designed to streamline common post-paste operations, enhancing your coding efficiency. Here are some of the immediate operations you can perform on the auto-selected text:

- **Indenting**: Quickly adjust the indentation of the pasted code by pressing `Tab` to indent or `Shift + Tab` to outdent.
- **Commenting**: Instantly comment out the pasted section using `Ctrl + /` (or `Cmd + /` on macOS).
- **Formatting**: If you have a formatter installed, you can format the selected code immediately with `Shift + Alt + F`.
- **Cut/Copy**: Decide to move the pasted content or duplicate it? Just use `Ctrl + X` to cut or `Ctrl + C` to copy without any extra selection steps.
- **Applying Snippets**: If you have code snippets or extensions that work on selected text, they can be applied right away.
- **Deletion**: Changed your mind about the pasted content? Simply press `Delete` or `Backspace` to remove the selected content.

After pasting, if you start typing, the auto-selected content will be deselected, and the cursor will position itself at the end, allowing for a seamless transition between pasting and typing.

This auto-selection feature aims to reduce the friction between pasting and editing, ensuring a smooth and efficient coding experience.

## 💻 Development

Curious about the tech behind the curtain? Dive into the extension's source code on [GitHub](https://github.com/TagWolf/auto-select-pasted-text.git).
Interested in the logic and technology that powers the extension? Explore the source code on [GitHub](https://github.com/TagWolf/auto-select-pasted-text.git).

## 📢 Feedback and Contributions

Every voice matters! Share your feedback, report bugs, or directly contribute to the evolution of this tool. Open an issue or submit a pull request on the [GitHub repository](https://github.com/TagWolf/auto-select-pasted-text.git).
Your insights shape the evolution of this tool. Share your thoughts, report bugs, or contribute directly. Engage with us by opening an issue or submitting a pull request on our [GitHub repository](https://github.com/TagWolf/auto-select-pasted-text.git).
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"displayName": "Auto Select Pasted Text",
"description": "Automatically selects text after it's pasted",
"icon": "autoselectpastedtextlogo.png",
"version": "0.2.0",
"version": "0.2.1",
"publisher": "davidcahill",
"license": "MIT",
"repository": {
Expand Down

0 comments on commit 8ec501f

Please sign in to comment.