3

Some strange issue appeared while working in Visual Studio 2010. Formatting for whole CSS file works fine CTRL+K,CTRL+D, but trying to format code inside of selection CTRL+K,CTRL+F shows an error:

 The key combination (CTRL+K, CTRL+F) is bound to command (Format Selection) which is not currently available.

Does anybody know what causes this behaviour?

1 Answer 1

1

When trying the second command, were you still formatting CSS or a different file type (.cs)?

Code which requires compiling can't be edited whilst running (debugging). HTML, CSS and Javascript can be edited whilst the code is currently running.

Not sure if that is the cause of your issue but that is how I can reproduce it.

Sign up to request clarification or add additional context in comments.

1 Comment

I was editing CSS file. But editing of whole file was ok, the problem is only with formatting of section.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.