Comments (12)
Apparently intellij-rust has partial support for refactoring (source).
from areweideyet.
Gladly :)
from areweideyet.
Actually, this is the reason why I did not add it (yet).
But I see the point that IDE users expect it to be there... maybe adding it below the list as information is better.
from areweideyet.
rust.vim has refactoring support, with rustfmt
. Is that what you mean, @SoniEx2 ?
from areweideyet.
@rosshadden Can you automatically rename a function?
from areweideyet.
No idea, sorry. I don't actually use or like autoformatting code, I just know that rustfmt
normalizes whitespace and some other things. I should probably have stayed silent since I don't know anything about it or what you were looking for.
from areweideyet.
@rosshadden Say you have a function f
, and your project has well over 500 files. Say this function f
is very important to your project and so it is used a lot. Say you wanna rename it to g
.
Now you have to go to every one of those 500 files and replace all calls to f
with calls to g
.
However, with refactoring, you rightclick the function f
, click rename
, type in g
, and it does all that for you.
from areweideyet.
Oh, okay, that makes sense. I've always used sed
for such things, but I do know (and appreciate) what you're referring to. tern
for JavaScript has that functionality, and I thought it was very cool, just never ended up implementing it into my workflow.
Cool!
from areweideyet.
intellij-rusts refactoring is pretty powerful nowadays.
from areweideyet.
Would you accept a PR adding refactoring info, now that some IDEs support it ?
from areweideyet.
@cyplo Do you know offhand which IDEs do have support so far?
from areweideyet.
Hi, CLion with Rust plugin supports some simpler refactorings, not sure about the others.
It may be interesting to have a more detailed view there on the website, listing some popular refactoring and which IDE supports which ?
E.g. extract function
vs extract module
vs inline function
etc ?
from areweideyet.
Related Issues (20)
- LetsEncrypt Certificate Expired Oct 22 HOT 1
- VSCode: Add Even Better TOML and remove Better TOML
- Micro rust plugin page seems to be missing HOT 1
- Sublime: LSP + rust-analyzer
- Add the "Helix" editor HOT 2
- Is 'Lapce' listed yet?
- Visual Rust for Visual Studio hasn't been updated in over 6 years
- Add RustRover HOT 1
- Dead link: rust-snippets
- Add coc.nvim HOT 1
- Broken link to https://www.rust-lang.org/ides.html HOT 1
- SolidOak has been archived. HOT 1
- Add gitpod.io HOT 1
- add rust-analyzer HOT 1
- MIcro editor has a good basic rust support HOT 1
- Add tabnine pulgin to vscode description HOT 1
- Update info about Kate HOT 1
- Debugger Comparison
- Emacs: rust-snippets repository is gone
- kate also supports rust-analyzer
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from areweideyet.