I'm making an Asp.Net Core MVC application using Visual Studio for Mac.(Not VS Code)
I want to use Emmet with Razor Page(*.cshtml file.) coding, but I can not use it even by pressing the Tab key.
I feel like I was able to use it before. (It is not certain.)
Is there a setting to enable Emmet somewhere?
Visual Studio for Mac does not have support for Emmet and there is no extension available that you can install.
Visual Studio for Mac has support for code snippets. If you open the Preferences dialog, select Text Editor - Code Snippets, you should find some snippets available for Razor files, and other files.
Code snippets are available in the completion list and you need to press tab - tab to select and then expand the snippet. However this does not match all the features that Emmet supports.
Related
I couldn't find shortcut to select entire line in Visual Studio 2019.
This feature is exactly the same as "CTRL + L" in VSCode.
For me, this is a very useful feature when using VS Code.
I want to use this feature somehow in VS2019.
I've tried to search in Keyboard Binding and Market Place.
I'm taking a course in HTML & CSS that requires Visual Studio 2019. I've written the exact script shown in the video over and over but there is no option to 'View in Browser'. I have no previous experience with JavaScript and very little Visual Basic. I've never used visual studio before.
I've uninstalled and reinstalled VS several times with the same problem.
Please help me!!
One of the examples I'm asked to type:
There is no option to 'View in Browser when right clicking or clicking the File tab.
I tried the solutions offered for VS 2017 but they did not work.
My laptop is a fairly new HP with Windows 10 installed.
Below is what comes up when I right click on the script.
enter image description here
If your HTML file is part of a project in Visual Studio, then here is one way to view your file in a browser.
Right-click on the project name in the Solution Explorer window
Select View > View in Browser
You may need to manually change the URL in your browser to get to your HTML file.
I am using visual studio 2019 in mac to setup my test automation framework in c# & Specflow . When i build my test automation framework in VS i am getting below error :
SpecFlow designer codebehind generation is not compatible with MSBuild codebehind generation. The custom tool must be removed from the file
On searching through forums, people recommending to remove the custom tool selected as "SpecFlowSingleFileGenerator". But when i check the same in VS 2019 for Mac it is not enabled for me to remove.
attaching the screenshotn. Can anyone help me with this issue ?
I'm not familiar with Visual Studio for Mac, but presumably the settings are the same or similar to Windows.
Check the SpecFlow options in Visual Studio. Make sure Enable SpecFlowSingleFileGenerator CustomTool is set to False. If Visual Studio for Mac is anything like windows, go to Tools > Options > SpecFlow, then look under the Legacy section.
A screenshot from Windows is below, showing the setting in question:
In Visual Studio 2015 when I want to create MVC application there is no MVC option like below
Also when I open a .cshtml file look like below (not formatting, not coloring, not intellisense)
I tried below suggestions but doesn't resolve
Install web developer tools by Visual Studio setup modification
Change .net framework version from project screen
devenv.exe /resetuserdata
Delete %LocalAppData%\Microsoft\VisualStudio\14.0\ComponentModelCache files
How can I solve ?
Try update web tools in visual studio 2015 - I had the same problem
Maybe you have selected the wrong file editor.
How to set other editor:
Click with your right mouse button on the View/HTML-page.
Click on: Open with...
Click on HTML editor (see image below)
Set the good editor as default:
Click on Set as Default (image below)
This problem can occur by clicking on an other editor and clicked by Set as Default.
I'm working on a few Umbraco projects that use MVC4. The MVC intellisense doesn't work within visual studio and I get lots of errors underlined. But when I run build the project, I don't get any errors, and when I run the site everything works fine.
I'm using Visual Studio 2013 and I created a new MVC4 site and compared the web.configs within the Views folder and they're identical.
I'm pretty sure it's not a code problem as my colleague is using the same code and he doesn't have this problem.
I've just done a fresh install of Visual Studio 2013.
Any ideas?
This could be a clue:
When I hover over #Htmlit tells me that my HtmlHelper is a System.Web.WebPages.Html.HtmlHelper instead of a System.Web.Mvc.HtmlHelper
The common one is to ensure that it is switched on (Visual Studio menu: Tools > Options > Text Editor > All Languages (or C# if you want it just for that language) > Tick "Auto list members", Untick "Hid advanced members", tick "Parameter information")
Once you've checked this, sometimes if you're using one HDD on Windows, because the disk has its bandwidth used up (particularly if using ReSharper then you need two or more drives ideally with the pagefile going to the non-OS drive I find). This is the case if the red lines do disappear after up to two minutes of not touching the IDE.
Finally check you project's references folder to make sure where the paths for your includes are coming from and that Visual Studio has permission to read from there. Permission issues cause all manner of problems I find, so when you launch VS, right click and choose "run as Administrator".
Hopefully one of these solves your problems. If not, then please update your question to explain how you create your project. Do you create an empty site or an MVC site? Do you then use Nuget to install Umbraco through the Package Manager Console like this?
Install-Package UmbracoCms