SyncLine Chrome Extension
About the Developer
Hi, I'm Sahil Sharma, a passionate developer focused on creating efficient and user-friendly solutions. I specialize in building Chrome and VS Code extensions, as well as full-stack web applications. With a deep understanding of web technologies and a drive to innovate, I strive to make tools that enhance productivity and streamline workflows.
To learn more about me and my projects, feel free to check out the "About the Developer" section in the extension's menu.
Overview
SyncLine is a Chrome/Edge extension that works in tandem with a VS Code extension to synchronize the Line Identifier between both platforms. The Line Identifier is used to map UI elements on the web page to the corresponding code in a VS Code project. When hovering over a UI element in the Chrome/Edge browser, a tooltip displays the Line Identifier and file path of the associated code in VS Code.
If you change the Line Identifier in either the Chrome/Edge extension or the VS Code extension, it must be manually updated in the other; they will not automatically sync.
Features
How It Works
Chrome/Edge Extension:
- Users can type a custom Line Identifier in the settings page.
- When hovering over any UI element on a page, the Chrome/Edge extension fetches the corresponding Line Identifier and file path from the VS Code extension.
- A tooltip is displayed showing both pieces of information.
VS Code Extension:
- Users can open the Command Palette and select the "Change Line Identifier" option to modify the Line Identifier.
- The extension maps UI elements in the code to the updated Line Identifier.
- The updated Line Identifier and file path are shared with the Chrome/Edge extension to be displayed when hovering over elements.
Installation
1. Chrome/Edge Extension
- Go to the Chrome/Edge Web Store. Search for the Extension:
- Use the search bar at the top left to search for the extension by name("SyncLine) Select the Extension:
- Click on the extension to install from the search results. Click "Add to Chrome/Edge":
- On the extension page, click the "Add to Chrome/Edge" button. Confirm the Installation:
- A pop-up will appear asking for permission to install the extension. Review the permissions and click "Add Extension" to confirm. Wait for Installation:
- Chrome will automatically download and install the extension. Once the installation is complete, you should see the extension icon in the top-right corner of the browser (next to the address bar).
2. VS Code Extension
- Install the VS Code extension from the VS Code Marketplace .
- Open VS Code, and the extension should automatically be added to your workspace.
How to Use
Run the extension a quick pick menu will apear there you will see an option about extension to get information about the extension
Chrome/Edge Extension
- Click on the SyncLine icon in the Chrome/Edge toolbar to open the popup.
- Type your custom Line Identifier in the settings page (optional).
- When hovering over any UI element in the browser, a tooltip will show the corresponding Line Identifier and file path.
VS Code Extension
- Open the Command Palette (press
Ctrl + Shift + P
or Cmd + Shift + P
on Mac).
- Type
Change Line Identifier
and select it to modify the Line Identifier.
- The updated Line Identifier will be used when you hover over corresponding UI elements in the Chrome browser.
Important Notes
- Manual Syncing: Changes made to the Line Identifier in either the Chrome or VS Code extension must be manually updated in the other extension. The extensions do not automatically sync changes to the Line Identifier.
- If you do not provide a custom Line Identifier, LineNumber will be used by default.
Future Improvements
- Automatic Synchronization: Implementing a feature to automatically sync the Line Identifier across both extensions.
- Additional Tooltip Information: Include more information in the tooltip such as the specific function or variable associated with the UI element.
License
Proprietary License
Copyright (c) 2024 Sahil Sharma
You are not allowed to sell, redistribute, or modify this extension without explicit permission from the author.
This extension is provided as-is for personal use only.
All rights reserved.