|
I've been working on a tool that combines the following three operations:
1) Rename folders in a root folder's tree (according to certain rules)
2) Rename files in a root folder's tree (according to certain rules)
3) Replace text in files throughout the root folder's tree (according to certain rules).
The tool allows me to basically have a "Find and Replace of Solution Explorer". Say I added a whole bunch of class libraries called Foo.MyLibrary.Bar.IsAwsome , Foo.MyLibrary.Bar.IsAwsome.Constants , Foo.MyLibrary.Bar.IsAwsome.Extensions , Foo.MyLibrary.Bar.IsAwsome.Factories , Foo.MyLibrary.Bar.IsAwsome.Interfaces , and now I say, I want to change the names of the projects, the names of the folders in which they live, and update the .sln file and all namespaces and corresponding using statements, etc. so the code still builds, replacing MyLibrary with Aardvark everywhere, this tool will do that for me.
However, I had this one solution that had, like, 980+ projects in it, and for operation #3 you really have to somehow go through each and every file in a folder tree and do a find and replace, and instead of having to shell over to Notepad++ to do that, I wanted to integrate a file search and replace operation of similar performance into my tool so it can just take care of it as swiftly, or almost as swiftly, as Notepad++.
|
|
|
|
|
Yeah... Resharper/VS has an "adjust namespaces" but that just didn't quite get it when it's hundreds of files getting changed.
Notepad++ did way better there for me but you do sort of want it in VS.
If you make it good enough maybe MSFT will come relieve you of the code and leave you a check.
|
|
|
|
|
I know I have used at least one commercial tool which has a low cost which seemed to have no problem with doing searches and replaces. And provided many options including regexes.
If someone needs to to this hundreds of times a day on a code base then something is wrong with the code base.
If they need to do it once a year then they should buy one of the tools and use it.
I wouldn't be surprised if there are some free ones also.
|
|
|
|
|
|
This is cool and not cool at the same time.
Jeremy Falcon
|
|
|
|
|
I see what you did there.
But then, doing so killed the cat.
(am I doing this right?)
|
|
|
|
|
dandy72 wrote: (am I doing this right?) Yes and no?
Jeremy Falcon
|
|
|
|
|
|
" that are already possible (and often more efficiently) on traditional computers."
What that really means is that it is not even close to being economical to do anything with this.
And I don't see anything it the article that really suggests that is going to be changed by this.
|
|
|
|
|
I could not locate the quote you referenced. May I please request guidance. Thank You Kindly
|
|
|
|
|
|
this is the most awesome thing ever. C'mon Star Trek and Babylon 5! Science fiction needs to turn into science fact! I have to get off this dumb planet sooo bad... ![Smile | :)](https://codeproject.global.ssl.fastly.net/script/Forums/Images/smiley_smile.gif)
|
|
|
|
|
Brian C Hart wrote: I have to get off this dumb planet sooo bad...
Graffiti:
Q: Is there intelligent life on Earth?
A: Yes, but I'm just visiting.
Freedom is the freedom to say that two plus two make four. If that is granted, all else follows.
-- 6079 Smith W.
|
|
|
|
|
π΅ And pray that there's intelligent life
Somewhere up in space
'Cos there's bugger all
Down here on Earth! π΅
"These people looked deep within my soul and assigned me a number based on the order in which I joined."
- Homer
|
|
|
|
|
Wordle 1,055 6/6*
β¬β¬β¬β¬π¨
β¬β¬β¬π¨π¨
π¨π©β¬β¬β¬
β¬π©β¬β¬π¨
β¬π©π©π©π©
π©π©π©π©π©
|
|
|
|
|
Kinda looks like Mario running to left but his hat fell on his face.
Jeremy Falcon
|
|
|
|
|
Wordle 1,055 4/6
β¬π¨β¬β¬π¨
β¬π©π©β¬β¬
β¬π©π©β¬π©
π©π©π©π©π©
|
|
|
|
|
Wordle 1,055 6/6
β¬β¬β¬π¨β¬
β¬π©β¬β¬π¨
β¬π©π©β¬β¬
β¬π©π©β¬β¬
β¬π©π©β¬π©
π©π©π©π©π©
|
|
|
|
|
Wordle 1,055 6/6
β¬β¬β¬β¬π¨
β¬β¬π¨β¬π¨
π¨β¬π¨π¨β¬
π¨π©β¬β¬π¨
β¬π©π©π©π©
π©π©π©π©π©
|
|
|
|
|
Wordle 1,055 5/6
β¬β¬β¬β¬π¨
β¬β¬β¬π¨π¨
β¬π©π©β¬π©
β¬π©π©π©π©
π©π©π©π©π©
Looks like almost everyone went about the same word sequence. Funny ![Laugh | :laugh:](https://codeproject.global.ssl.fastly.net/script/Forums/Images/smiley_laugh.gif)
modified 17hrs ago.
|
|
|
|
|
Wordle 1,055 5/6
β¬π©β¬π¨β¬
β¬π©β¬β¬π¨
β¬π©π©β¬β¬
β¬π©π©β¬π©
π©π©π©π©π©
Jeremy Falcon
|
|
|
|
|
Wordle 1,055 6/6*
β¬π¨β¬β¬π¨
β¬β¬β¬π¨π¨
β¬π©β¬π¨β¬
β¬π©π©β¬π©
β¬π©π©π©π©
π©π©π©π©π©
That was close!
"I have no idea what I did, but I'm taking full credit for it." - ThisOldTony
"Common sense is so rare these days, it should be classified as a super power" - Random T-shirt
AntiTwitter: @DalekDave is now a follower!
|
|
|
|
|
β¬π¨β¬β¬π¨
β¬β¬β¬β¬β¬
β¬π©π©β¬β¬
β¬π©π©β¬π©
π©π©π©π©π©
In a closed society where everybody's guilty, the only crime is getting caught. In a world of thieves, the only final sin is stupidity. - Hunter S Thompson - RIP
|
|
|
|
|
Wordle 1,055 6/6*
β¬β¬β¬β¬π¨
π¨β¬β¬π¨π©
β¬π©π©β¬π©
β¬π©π©β¬π©
β¬π©π©π©π©
π©π©π©π©π©
Happiness will never come to those who fail to appreciate what they already have. -Anon
And those who were seen dancing were thought to be insane by those who could not hear the music. -Frederick Nietzsche
|
|
|
|
|
Wordle 1,055 4/6
β¬β¬β¬β¬β¬
β¬β¬β¬β¬β¬
β¬🟨🟨🟨β¬
🟩🟩🟩🟩🟩
Ok, I have had my coffee, so you can all come out now!
|
|
|
|