Questions tagged [rename]

For anything regarding renaming. Could be applicable to a wide range of subjects. Should be replaced by a more domain-specific tag if applicable.

Questions regarding renaming one or many files, directories, projects, variables, users, data cells, and version control conflicts arising from renaming should be tagged with rename.

To rename a file means to give an existing file a new name without changing any of its content. In UNIX systems, this is done with the mv command.

Renaming a variable will usually require a find-and-replace edit in existing code.

5438 questions
19
votes
3 answers

Rename files in multiple directories to the name of the directory

I have something like this: v_1/file.txt v_2/file.txt v_3/file.txt ... and I want to rename those files to something like this: v_1.txt v_2.txt v_3.txt ... in the same directory. I guess I can use rename but I can't figure out how to use it with…
giskou
  • 804
  • 2
  • 8
  • 22
19
votes
7 answers

How do you rename DataGrid columns when AutoGenerateColumns = True?

I have a simple data structure class: public class Client { public String name {set; get;} public String claim_number {set; get;} } Which I am feeding into a DataGrid: this.data_grid_clients.ItemSource = this.clients; I would like to…
jmulmer
  • 357
  • 1
  • 3
  • 7
18
votes
2 answers

Rename a repo in GitKraken?

I have been unable to find how to rename a local repo in GitKraken, or if this feature is unavailable. I believe the option was available if you use the Init feature to generate the local and remote repos, but I'm wanting to update the repo name…
openrd
  • 311
  • 2
  • 9
18
votes
4 answers

MSBUild: Copy files with a name based on the original (following a pattern)

I have a set of files inside a folder. They all have a name which matches the pattern DR__.*. I want to copy them to another folder, but removing the DR__ prefix. How can I do this with MSBuild? I used to do it like this using NAnt:
dario_ramos
  • 7,118
  • 9
  • 61
  • 108
18
votes
4 answers

Laravel 5.1 rename project

What is the best solution if I want to rename my laravel 5.1 project, I just tried to rename one but it did not work properly got some errors. Are there some kind of steps one has to do to rename a laravel project?
John Does Legacy
  • 1,441
  • 6
  • 23
  • 33
18
votes
6 answers

python pandas: rename single column label in multi-index dataframe

I have a df that looks like this: df = pd.DataFrame(np.random.random((4,4))) df.columns = pd.MultiIndex.from_product([['1','2'],['A','B']]) print df 1 2 A B A B 0 0.030626 …
Boosted_d16
  • 13,340
  • 35
  • 98
  • 158
18
votes
3 answers

How to rename an iOS 8 Today Widget?

I've just started experimenting with adding an iOS 8 Today Widget to my app, it's going ok so far but I followed the original template and got my widget created with TodayWidget as its name. In the context of my app's files in Xcode that…
jimbobuk
  • 1,211
  • 12
  • 25
18
votes
4 answers

How to rename model

I made a mistake early in development, and named one of my models with plural noun (Users instead of User). Is there an easy way to rename it and corresponding controller (similar to generating it with script/generate way)?
samuil
  • 5,001
  • 1
  • 37
  • 44
18
votes
1 answer

Rename a mysql procedure

Does anyone know what is the syntax for renaming a mysql stored procedure/function? Or is this even supported in MySQL? I've been googling this for several minutes...
Ferenc Deak
  • 34,348
  • 17
  • 99
  • 167
18
votes
7 answers

Is there a way to change a SVN users username through the entire repository history?

When my team first started out with SVN we all just used our first names when committing to the repository, however, now that our team has grown, we are running into issues because we just hired a second Mike. What we would like to do is change…
Wally Lawless
  • 7,539
  • 7
  • 37
  • 53
18
votes
3 answers

Find and rename files with no extension?

So, I've got a bunch of files with no extension. I want to write a windows batch script that will: Find files with no extension (in a specified folder) Add .bla to the end of the file name I'm such a windows batch script noob I don't even know…
Glenn
  • 4,195
  • 9
  • 33
  • 41
17
votes
5 answers

How to add prefix of all tables in mysql

How can I add prefix to all tables in mysql using query. For example: I need to add "dr_" in all tables which are available in mysql database.
Fero
  • 12,969
  • 46
  • 116
  • 157
17
votes
4 answers

Android Studio changing ID's in one xml file changes the ID's in another file

I used to give simple ids to Android Views, but lately, I stopped that altogether because of this issue. Let's say I have 2 layouts, one named first_layout.xml and second named second_layout.xml. In each of these layouts, there is a view with id…
xinaiz
  • 7,744
  • 6
  • 34
  • 78
17
votes
3 answers

Is there a Visual Studio keyboard shortcut to rename a file in Solution Explorer?

As the question title says: Is there a Visual Studio keyboard shortcut (or series of shortcuts) to rename file in Solution Explorer? I am using VS2008 and manually doing this by right-clicking on a file in the Solution Explorer and selecting…
Dhaust
  • 5,470
  • 9
  • 54
  • 80
17
votes
7 answers

How to rename your app in itunesconnect?

Is there any way to rename you app in itunes connect?
dan
  • 507
  • 2
  • 9
  • 14