Live Server closes when I click anywhere in VS Code - visual-studio

Hi All: I'm very new to VS Code and know no coding. I'm trying to teach myself HTML and CSS by watching videos and reading tutorials. I mention this so that perhaps will give me some understanding if my nomenclature is incorrect.
To make a long story short through my learning's so far it sounds like VS Code is the premier code editor.
So I've downloaded and installed it. So far so good. The video I was watching introduced me to the "Live Server" extension, so I installed it. The problem is once opened, the Live Server window closes any time I left click on anything else in VS Code or if I open another Google tab. Is there a solution? Please keep in mind here my newness to coding and the VS Code editor. Thanks for any help you can provide!

Very nice extension. I installed and works fine. Maybe you need to uninstall it and install it again. But when a page in Visual Studio Code is open to install the extension you need to check the instruction how to use it.
After you open the project and your html file down in blue line in VS Code need to click the Go live button.

Related

Unity2020.3.9f1c1 Hold On(busy for 03:29)

This thing is a bit annoying.
How do I get rid of it.
Whenever I open a project and open a C # file in Visual Studio.
First, a dialog box will appear saying that Visual Studio is being opened.
Then this dialog box will always be displayed.
And it won't go away.
I could just ignore it and continue with Unity.
But it's still a little annoying.
This is not a very serious problem.
But it's really annoying.
I searched Google for a long time and couldn't find the answer.
I hope someone can give me some hints.
Disable Compress Assets on Import for faster loading.
Unity Documentation
And move project to a SSD or M.2
I changed the project name from Chinese to English.
Now the problem is solved.
This was not an issue in previous 2019 versions of Unity.
So I think it's a bug.
Make sure your project path and project name contains only English letters, this should help.
I had the same issue on Unity 2020.3.35f1. This helped me out.

Small Basic - When would 'Graduate' be used?

So today I decided to take a look at the Graduate feature in small basic, I discovered that it allows you to convert your small basic code to a format for Visual Studio, Great I thought.
Until when I later tried it, Visual Studio reported that there were over 102 errors with the code, I found that this was because the compiler couldn't understand most of the small basic functions like GraphicsWindow, TextWindow, Mouse, Shapes etc. So, have I done wrong? As Visual Studio is my main programming language I couldn’t wait for the small basic code to be magically converted to work with VS. Some of the code could be manually translated such like TextWindow to Console, but what do you do with code that is specific to Small Basic like GraphicsWindow?
You are using the Graduate feature correctly, and you haven't done anything wrong; the reason you're getting errors is because Visual Studio doesn't seem to automatically import SmallBasicLibrary.dll correctly. The last time I used Graduate (~2 years ago) this wasn't a problem, so I imagine this issue is a result of Visual Studio updates.
Thankfully, this issue is easy to fix. You simply need to import SmallBasicLibrary.dll manually and then add a single line to the top of your Visual Basic code. Note that these instructions are for Visual Studio Community 2013, but I would imagine they're the same for most recent versions.
In Visual Studio, go to Project > [Project Name] Properties.
In the tab that opens, go to References on the side panel. Select SmallBasicLibrary in the list and click Remove.
Click the Add button (next to Remove), then in the window that opens select Browse in the side panel. Now click the Browse button at the bottom of the window.
Find SmallBasicLibrary.dll in your Small Basic installation folder (for me this was C:\Program Files (x86)\Microsoft\Small Basic) and double-click it. When you are taken back to the Reference Manager window, ensure that SmallBasicLibrary.dll has its checkbox checked, then click OK.
Select Application in the side panel and ensure that the targeted version of the .NET framework is 4.5.
Finally, open your Visual Basic code using the Solution Explorer and add this line to the top of it:
Imports Microsoft.SmallBasic.Library
The resulting code should look something like the following:
Imports Microsoft.SmallBasic.Library
Module UntitledModule
Sub Main()
TextWindow.WriteLine("Test")
TextWindow.Pause()
' Your Small Basic code here...
End Sub
End Module
All your build errors should be gone, as the Small Basic commands are now available.
Once you've done this, Graduate is ideal for using VB-exclusive commands or libraries along with your Small Basic code.

visual studios 2012 after opening one file, I cant find the previous file I had open in the Document Well

Anyone know how to make the document well act like vs2010? Every time I open a file in the solution I lose the previous file unless I pin it. I want it to act like a stack.
Thanks
Nick
I you double click a file you have the same behavior as in VS10. You can deactivate the preview function in solution explorer (i believe one of the right buttons - unfortunately I have no VS12 by the hand at the moment, so I can tell the exact position).

Visual Studio says it can't find source code for a web-debug

I'm using VS2005, and have been for many years without problems, and 2003 before that.
Today suddenly, when I try and debug javascript on a site from the web, the debugger loads as normal but complains it can't find the source and offers me the chance to go looking for it. In the Script Explorer it shows all of the files loaded by the page, it just won't show me the source for them when I double-click on them.
I've tried resetting all settings to web-development default. Didn't work. I even tried exporting the settings from another machine (XP) I have with VS2005 on it that works fine. After importing to the faulty machine (on Win 7) it made no difference.
Any ideas?
Steps to recreate:
1. Open IE9, go to yahoo.com
2. Click View->External Script Debugger->Open
3. Once in the debugger it says cannot find source and offers me a dialog to help me find it on my local machine (why would it be there?).
4. In the Script Explorer I see all html and js files the page loaded, but upon double-clicking them, nothing happens. Usually it opens the source and you can set breakpoints.
Working config is on XP/IE8
Non-working config is on Win 7/IE9 but was working fine before today.
I just noticed a bizarre side-effect. The File menu in IE9 is greyed out during the debug session and even after I've closed VS. So freaky.
Well, no solution was found as to why VS2005 suddenly developed a lack of understanding as to how to get JavaScript source code for live sites. I uninstalled it and installed VS2010 instead and that's working just fine, on the same sites. Maybe re-installing VS2005 would have worked, but I'd had VS2010 around waiting to be installed for a while anyway, so two birds, one stone and all that.
It remains a mystery. No point anyone offering any further input now. The problem is history.

Error List Freaking Out in VS 2008 while in large Aspx Files

I've been having this irritating issue lately. The site I'm currently working on has large aspx pages with tons of client side js code. While I'm typing the Error List window will keep opening and closing at the bottom of VS (where I have the window docked). I mean constantly. This is beyond aggravating as you can imagine. It's happening to a coworker as well. Does anybody else have this issue? Any solutions? (other than smaller pages)
We've got 2008 Pro SP1. I've turned off every JS feature I can find since with pages this large it slows the VS to a crawl while it tries to parse it. I've tried closing the Error list completely but it just re-opens itself.
Thanks in advance,
Geoff
Try deleting the .user file in the project directory
Use Add/Remove programs to do a repair on VS2008
If neither of those work, copy the markup to a new project and attempt to reproduce. If you can reproduce this issue then update this question with details.
I finally found the options that were causing the issue.
1. Options->Text Editor-> Miscellaneous,
un-check "Formal HTML on paste
2. Options->Text Editor->JScript->Formatting
un-check The boxes under "Automatic Formatting"

Resources