开发者

Does anyone else have a bizarre Visual Studio 2010 code-editing problem when style="" attribute?

开发者 https://www.devze.com 2022-12-27 08:03 出处:网络
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百科st

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:

  1. Format code (CTRL-K,D)
  2. 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.

0

精彩评论

暂无评论...
验证码 换一张
取 消