User forums > General (but related to Code::Blocks)

[Suggestion] Ideas for Code::Blocks.

(1/2) > >>

kurapix:
[Suggestion] Ideas for the replacement functionality.

Hi guys!
I have an idea for  replacement functionality.
At the moment it replace by seeking a precise text, but what if it could detect that it's a variable or a function or a class ....?
I mean, instead of having to replace name variables by other name variable one by one or all match (which can cause disaster in some case) why not having a replacement functionality that detects the variable name then you can change this variable name and it change it in all the source (so it's much safer than replacing all match).

I hope my idea is clear enough.

Kurapix

raph:
Wow, would be really cool. Very much like rightclicking on a variable/function/class/...->"Rename".

Poobah:
Yeah, that sounds like a good idea.

jpaterso:
It sounds like some sort of refactoring, which is actually very complicated in C++...

Roman:

--- Quote ---I hope my idea is clear enough.
--- End quote ---

Surely, idea is clear but did You try code completion functionality? It is cool and useful, but contains clearly visible bugs/flaws. I'm sure developers have spent giant efforts to make it 100% perfect. Even MS code completion sometimes sucks. Despite of tons of coders.
The functionality You propose has to be 100% reliable which is far from reality. But text replacement is.

My opinion about this is that if there were common reliable open framework that would be used BOTH by compiler and by IDE then Your idea might be incarnated. It is rather far from reality.

Regards
Roman

Navigation

[0] Message Index

[#] Next page

Go to full version