Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/kawamataryo/copy-python-path

Copy the python dotted path of the current file to clipboard
https://github.com/kawamataryo/copy-python-path

python vscode vscode-extension

Last synced: 4 months ago
JSON representation

Copy the python dotted path of the current file to clipboard

Awesome Lists containing this project

README

        

# Copy Python Path

![](https://i.gyazo.com/4b80a051f219aab1ec8874f5475277a4.png)

installs
[![E2E](https://github.com/kawamataryo/copy-python-path/actions/workflows/e2e-test.yml/badge.svg)](https://github.com/kawamataryo/copy-python-path/actions/workflows/e2e-test.yml)

An VS Code extension to copy python dotted paths to the clipboard.

## Features

Would you like to get the python path, e.g. when running unittest?


When the `copy python path` command is executed, it copies the python dotted path to the clipboard. It also works with context menus.

![feature](https://i.gyazo.com/fe88befdaea034eff0adfd4caacd028f.gif)

## Configuration

If you want to add the workspace folder name to the beginning of the dotted path, add the following setting to setting.json.

```
{
"copyPythonPath.addModuleRootName": true // default false
}
```
## Notice
- This extension works only with python3 files.

## License

[MIT](https://github.com/kawamataryo/copy-python-path/blob/main/LICENSE)

## Contributing
Contributions are welcome 🎉
We accept contributions via Pull Requests.