jannisx11 / batch-rename Goto Github PK
View Code? Open in Web Editor NEWVS Code extension to batch-rename files
Home Page: https://marketplace.visualstudio.com/items?itemName=JannisX11.batch-rename-extension
License: MIT License
VS Code extension to batch-rename files
Home Page: https://marketplace.visualstudio.com/items?itemName=JannisX11.batch-rename-extension
License: MIT License
Dear extension author,
Please publish this extension to the Open VSX marketplace.
Unfortunately, as Microsoft prohibits usages of the Microsoft marketplace by any other products or redistribution of .vsix
files from it, in order to use VS Code extensions in non-Microsoft products, we kindly ask that you take ownership of the VS Code extension namespace in Open VSX and publish this extension on Open VSX.
Open VSX is a vendor neutral alternative to the MS marketplace used by most other derivatives of VS Code like VSCodium, Gitpod, OpenVSCode, Theia-based IDEs, and so on.
You can read on about Open VSX at the Eclipse Foundation's Open VSX FAQ.
The docs to publish an extension can be found here. This process is straightforward and shouldn't take too long. Essentially, you need an authentication token and to execute the ovsx publish
command to publish your extension. There's also a doc explaining the whole process with an example GitHub Action workflow.
HI! I personally found useful useful having a way to rename multiple symbols within editor, when you have a lot of variables declaraed in one place using some name pattern eg:
// want to rename a bunch of variables safely
const sendButtonEnabled = true;
const sendButtonColor = 'red';
const sendButtonBackgroundColor = 'green';
...
Workflow: using multiselect select all needed variables, rename them in the same way
You can look at Multi Rename Extension
It's just plain text so I could not add per-language settings like below:
"[batch-renamer]": {
"files.autoSave": "off"
},
Performance
batch-rename-extension
0.0.5
Darwin arm64 21.1.0
1.67.1
file:///var/folders/6m/q54nccs91gv332rz_488pc_r0000gn/T/JannisX11.batch-rename-extension-unresponsive.cpuprofile.txt
Find more details here: https://github.com/microsoft/vscode/wiki/Explain-extension-causes-high-cpu-load
such as
vscode.commands.executeCommand('editor.action.rename', )
because I want to batch rename, also I need to change the imports in the codebase.
Hi @JannisX11 , thanks so much for open-sourcing this!!
Would you be open to adding the link to the extension in the right column, in the Website URL underneath the About
description? You can add it by clicking on the gear on the top right.
https://marketplace.visualstudio.com/items?itemName=JannisX11.batch-rename-extension
I would do a pull request, but GitHub doesn't allow for suggesting changes to the Website of a project yet...
I can use the extension when right-clicking files and pick "batch rename". It even shows the shortcut (control + command + R) in my case but when I press the shortcut, nothing happens. When the action is clicked via mouse menu, it works. No other action is assigned to this shortcut. I've tried different shortcuts, same result.
Using VSCode 1.74.3
I tried this for the first time. I have a list of files, all in the same folder. As soon as I hit save, I got this error:
Failed to save '.Batch Rename.txt': Unable to resolve nonexistent file '/home/appu/.vscode/extensions/jannisx11.batch-rename-extension-0.0.6/out/src/.Batch Rename.txt'
This is an awesome tool. Thanks for making it @JannisX11
I'm not sure why, but when renaming files with perfectly fine filenames (TEST.TTF
into test.ttf
) produces correct results if it wasn't for a _1
appended after each filename (test_1.ttf
).
Hi VS Code PM here 👋
We really like you extension and we decided to feature it on the main marketplace page https://marketplace.visualstudio.com/
To make this look better it would be great if you can use an icon?
If you do not have any icon maybe use Dall-E-2 to generate an icon?
Thanks
Isidor
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.