简体   繁体   English

VS 2010没有在css编辑器中打开css文件

[英]VS 2010 not opening css files in css editor

I have no idea how to fix this. 我不知道如何解决这个问题。

VS keeps opening css file in some text editing mode, see the picture below. VS在某些文本编辑模式下保持打开css文件,请参见下图。

在此输入图像描述

I have already tried to set it manually to open using css editor, right-click on css file and select "Open with..." 我已经尝试手动设置它以使用css编辑器打开,右键单击css文件并选择“打开方式...”

在此输入图像描述

When I click OK here, it opens my css file in CSS source editor fine, but every next time it opens again in that text mode, like it completely ignores that it has to open it using css editor :( 当我在这里单击OK时,它会在CSS源代码编辑器中打开我的css文件,但是每次下次它在该文本模式下再次打开时,就像它完全忽略它必须使用css编辑器打开它:(

Of course I installed and reinstalled Web Standards Update a thousand times. 当然,我安装并重新安装了Web标准更新一千次。

Nothing helps. 什么都没有帮助。

The damn thing keeps opening them in that ugly text mode :( 该死的东西一直在那丑陋的文字模式打开它们:(

Hmmm. 嗯。 Have you tried looking under the view menu? 你试过在视图菜单下查看了吗? It's been a while since I've used it, but I remember different views being under the view menu bar. 自从我使用它已经有一段时间了,但我记得在视图菜单栏下有不同的视图。

If that doesn't work then I'd always try creating a new .css file and copy and pasting all the information; 如果这不起作用,那么我总是尝试创建一个新的.css文件并复制并粘贴所有信息; after you copy and paste, overwrite the pre-existing corrupt file. 复制并粘贴后,覆盖预先存在的损坏文件。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM