Does anyone else have a bizarre Visual Studio 2010 code-editing problem when style="" attribute?
In Visual Studio 2010 (just upgraded), in standard Web Application projects (everything) I cannot finish writing <element style="">
. Text input is impossible as soon as I get to 开发者_C百科style="
. Some kind of text editor bug.
Is there a fix?
EDIT: I've noticed this seems related to having horizontal/vertical Tab Groups open.
@rlb: There is no mention of anything related to this issue on that MSDN blog page...
@Joel: I have the same issue as you. Are you by chance using Resharper? I am, and my colleages who are not using it don't have this problem. Check out this page.
My work-around (until I find something better) is to copy the element with all its attributes from Visual Studio to a text editor, edit the style attribute in the text editor, then copy the whole thing back to Visual Studio, pasting over the still-selected element. Not exactly the most elegant, but better than not being able to edit inline styles — or giving up resharper...
My current work-around:
- Format code (CTRL-K,D)
- Undo
FIX: Installing Visual Studio 2010 SP1 has not fixed the issue. EDIT: Formatting code does not always work. Perhaps it is a content encoding issue.
精彩评论