It is better to create the class library as an MVC project (even though it will never be deployed standalone) in order to have the tooling support.
Edit: There are some workarounds such as Razor intellisense from a fake web.config etc, but I've found all of these lacking when compared to full support.