English 中文(简体)
ReSharper: 不详的名称空间?
原标题:ReSharper: Rename namespace not available?

我试图改名。 出于某种原因,ReSharper没有给我选择这样做。 我正确地点击并选择了Recent,但除“Convert”外,所有东西都被搁置。 我试着CTRL R+R的关键组合,并说指挥是无法的。 我做了什么错误?

这里的文件表明,我正在努力做的是:

视力演播室2008年,R#4.5

问题回答

I have come across this before and the answer is very subtle. Do not select (eg by double clicking) the entire method name(or namespace if renaming a namespace). Instead, ensure the method name is deselected and place the caret over the method name. eg

“entergraph

<>0>NOT

“entergraph

When you select the Convert menu the items should now be available for methods, and Rename will become available if you had the caret over a namespace. In my mind this should be changed, it is not obvious.

对于它的价值来说,我只是有这个问题。 结束视觉演播室并重新启用,给我留下了问题。 HTH.

This is an old issue but I just had this and perhaps know a workaround. Since someone has commented just yesterday timing could not be more perfect. Anyways, I had the same issue and was finally able to do a rename refactoring on my namespace.

  • I chose one of the classes in my project and did the move to another namespace refactor.
  • Then I was able to go to another class and do the rename namespace refactor.

或许,Resharper的一个ug子是,如果名称空间在整个类别中保持一致,那就会造成残疾? 与此不同的是,自报告以来,这已高达4.5条。





相关问题
building .net applications without Visual Studio

I m interested to hear about people working with building .net applications using MSBuild, NAnt or similar tools. What are you using, why are you using it instead of the VS IDE? I like to use ...

Tips for debugging a made-for-linux application on windows?

I m trying to find the source of a bug I have found in an open-source application. I have managed to get a build up and running on my Windows machine, but I m having trouble finding the spot in the ...

Visual Studio 2010 Beta 2: Can I print in color?

I have to turn in a hard copy of some code with an assignment. Is there any way in Visual Studio 2010 to print C# source code with syntax highlighting? PS: The assignment is solving a math problem, ...

Set Select command in code

On button Click I want to Set the Select command of a Gridview. I do this and then databind the grid but it doesn t work. What am i doing wrong? protected void bttnView_Click(object sender, ...

WPF design-time context menu

I am trying to create a custom wpf control, I m wondering how I can add some design-time features. I ve googled and can t seem to get to my goal. So here s my simple question, how can I add an entry ...

热门标签