I am using VS2013 with Resharper 8.2 installed.
I've gone from using CSS to LESS using dotless to compile at runtime.
I've completely lost the editor intelligense - like clicking on a css class would take me to the css file.
Is there any way to restore this or make it work with LESS? VS2013 or Resharper don't mind which.
Related
Sometimes after editing some parts of a razor source file, the editor crashes with tons of errors like the following screenshot:
It fails to recognize these external components from NuGet packages and other source files.
This problem has been around for quite a while. Since it could be simply fixed by reloading the project, I didn't pay much attention to it at first. However, it started to appear frequently recently, I have to reload the project every few minutes, which is really annoying.
Maybe someone has also encountered this problem? It sucks to have to reload the project all the time!
To be mentioned, I'm using ReSharper 2021.3 along with VS2022, but ReSharper's global analyzers still work fine when VS's crashes.
While building an ASP.NET MVC application with AngularJS, VS2013 is exhibiting very bad responsiveness when switching between the file-tabs. VS is reacting extremely slow, needing up to three and more seconds loading the file-content by switching the tabs when Resharper is activated.
I am working with .cs, .js, .html and .cshtml files including Razor syntax, etc.
I found out that Resharper was the problem. By disabling Resharper, everything now works perfectly fast. It looks like Resharper is taking ages to analyze these .html, .cshtml and .js files. However, I am currently looking for deactivating the responsible Resharper option which is causing the problem. Does someone know which option could be responsible for the problem?
I am currently running on Visual Studio (version 12.0.31101.0) and Resharper (version 9.0 Update 1).
I use MVC4 to develop on a website project and installed Mindscape workbench, Sass studio extension.
I also use bootstrap and Jquery script, not sure if this matters.
I usually edit scss file then save changed then view my change in browser while debugging, however, after working for a white, my editor becomes really slow, slow to click button, slow to type ( it takes couple seconds to move cursor ), almost slow at any interaction with keyboard and mouse. I have to restart my Visual Studio every time, it is really painful.
It is obviously something with SCSS extension to cause this slowness, because if I uninstall extension, this slowness is gone with it.
Has anyone also experienced this, and if you find solution of this, please kindly let me know, will really appreciate it!
I am using a separate javascript file to put my React JS JSX in. When I use the example given by the documents, I get tons of Visual Studio warnings and ugly squiggly lines..
I cannot figure out a way around this.. Pretty much a deal breaker for React JS.
Visual Studio 2012 was released before ReactJs, so you can't really blame them for not supporting it.
There is some visual studio stuff here:
http://reactjs.net/
You can see support for tooling being asked here:
https://github.com/reactjs/React.NET/issues/3
with Web Essentials being one of the prime picks for asking for support (might want to add your votes!)
If you are using Resharper it might be added in the next release, JetBrains is looking to add it into WebStorm
https://youtrack.jetbrains.com/issue/WEB-10136
This is because you're essentially putting html into your javascript. I found this after a quick google search and might fix your problem: https://visualstudiogallery.msdn.microsoft.com/d65d6b29-6dd7-4100-81b1-609e5afce356
The page mentions: "Visual Studio currently doesn't have native JSX syntax support. You can edit .jsx files in regular VS JavaScript editor for now and vote for adding native JSX support in Visual Studio here (the most requested feature in WE)."
I am experimenting with Less Css, and I am using Visual Studio 2010.
It would be nice if the editor provided support for syntax highlighting and Intellisense for Less, for instance coloring and suggesting variables. What are my options to get that to work ? Do I need to write a plugin for it, or how would one go about adding this to VS ? Does anything exist for this already ?
If you are using Visual Studio 2012 you can use Web Essentials 2012. It uses syntax highlighting similar to Visual Studio's CSS syntax highlighter. It compiles to CSS on save.
Update
2.4-2.5 Less syntax highlighting was disabled
As of 2.6 Less syntax highlighting was turned back on
As of 3.8 Less syntax highlighting is disabled for VS2012.
http://www.mindscapehq.com/products/web-workbench
Update (07 Mar 2012)
After a week or so of using this, I have uninstalled it due to:
Annoying nagging adverts telling you to upgrade
A weird bug that stopped me being able to save my .less files intermittently
This extension seems better : LessExtension
Here is the author description :
Autocompile on save (using dotless)
Highlight matching braces
Syntax highlight (No multiline comment support)
Word highlight when a word occurs multiple times
Word completion using Visual Studios css 2.1 definition
Outlining so { ... } sections can be collapsed
And it work nice for me.
I can't find one on the Visual Studio Gallery (as of 5/2/10) besides CSS Is Less, which only hooks up the built-in CSS language service.
If you want to learn how to write one yourself, you can start by looking at the Ook Language Integration sample. Implementing the extension points in that sample (classification, quick info source, completion source) will give you the features you asked for (syntax highlighting, hover tips, intellisense completion).