The VSCode extension can help you add references to your code. Press CMD + SHIFT + D; the extension will create function references and insert them as comments in your code. The extension uses the Polyfact API to generate the references.
As of the latest update, the project is at version 0.1.2
The Polyfact Extension is open-source software licensed under the terms of the MIT license, promoting reuse and further development by the coding community.
- Command Activation: The
polyfact-extension.commentFunctions
command, once executed, activates the extension. - Accessible Keybindings: To invoke the command, use the keyboard shortcut
Ctrl+Shift+D
(Cmd+Shift+D
on macOS) when the text editor is focused. - Context Menu Activation: Users can also activate the Polyfact Extension by right-clicking in the editor and selecting 'Polyfact Extension' from the context menu.
- Comment Detail Level Selection: The extension now offers a configurable 'Mode' setting to choose the level of detail in the generated block comments. Users can select between 'light', 'normal', and 'reinforced' modes, each offering different levels of comment detail.
To set the detail level for the generated comments:
- Navigate to the Visual Studio Code settings (File > Preferences > Settings).
- In the search bar at the top of the settings panel, type 'Polyfact Extension'.
- Click on 'Edit in settings.json' under the 'Polyfact Extension' section.
- In the settings.json file, add a new line within the JSON object:
"polyfact-extension.mode": "<your_preferred_mode>"
- Replace
<your_preferred_mode>
with either 'light', 'normal', or 'detailed'. - Save the settings.json file to apply the changes.
The Polyfact Extension requires an access token for integration with the Polyfact API. Here's how to acquire an access token and configure the polyfact-extension.accessToken
:
- Visit Polyfact's application and click on 'Connect with Github'.
- Once you're authenticated with Github, you will be able to see your access token.
- Copy the provided access token.
- Now, navigate to the Visual Studio Code settings (File > Preferences > Settings).
- In the search bar at the top of the settings panel, type 'Polyfact Extension'.
- Click on 'Edit in settings.json' under the 'Polyfact Extension' section.
- In the settings.json file, add a new line within the JSON object:
"polyfact-extension.accessToken": "<your_access_token>"
- Replace
<your_access_token>
with the access token you copied from the Polyfact application. - Save the settings.json file to apply the changes.
The source code for the Polyfact Extension is publicly accessible via this GitHub repository. We welcome contributors and users alike to explore the codebase, report issues, or even propose enhancements.
The Polyfact Extension is compatible with Visual Studio Code version 1.79.0 or higher, ensuring it can seamlessly integrate with your existing development environment.
The Polyfact Extension falls under the "Other" category in Visual Studio Code extensions.