I have 2 different folders in my vscode workspace containing html..css files I want to open the two different html files with live server. when I open the first one it says "Server is Started at port : 5500" and it creates a new browser window and it works, when I try to open the 2nd one it says "Server is already running from different workspace." how can I solve this ? I read someone says that I can open it from a different port, how can I do that ?
how to open 2 different files with live server in vscode
4k Views Asked by B-M Amine At
1
There are 1 best solutions below
Related Questions in VISUAL-STUDIO-CODE
- vscode file icons
- Building C# code in VSCode on Mac
- How do I support jasmine and es6 syntax in Visual studio Code?
- JS Code didn't work, trying do a demo in css lessons
- Debug Java in Brackets editor or Visual Studio Code
- Visual Studio Code, C# support on Windows
- What is the use of the Developer Tools in VS Code?
- Option to push disabled in Visual Studio Code
- How do I include 'System.Runtime.Serialization.Json' namespace in my VSCode project on Mac OS X?
- Using System.Web.Http on mac os x
- VSCode intelliSense autocomplete for javascript
- Set language for syntax highlighting in Visual Studio Code
- Import {} from location is not found in VS Code using TypeScript and Angular 2
- Predefined type 'System.Object' is not defined or imported [dnxcore50]
- VS code appending special characters on paste
Related Questions in PORT
- C# FTP server never receives incoming transfer connection after processing EPRT command
- How to set 3306 port free after uninstalling MySQL?
- List all VM's by their port mirroring settings PowerShell
- How to make Puppet track TCP ports to avoid conflicts?
- Automatically forward ports from clients
- How to find port number of network connected device?
- Tcp Port connection shows incompatible value
- What are the port i can use to send email in java?
- Epson POS printer, ePOS Sdk. What's the default port?
- How to fix Tomcat has failed to start: the port X is already in used?
- Reference web projects from other web projects in solution
- How to run tomcat7 web app through https over port 8443?
- See data that an app is secretly sending to web server in the background
- The requested address is not valid in its context when I try to listen a port
- Send a open port request to router
Related Questions in LIVESERVER
- Does VS Code's Live Server extension support remote development extensions?
- Laravel Websockets
- POST 405 Method Not Allowed Fetch
- Live-server error in VSCode: "Uncaught (in promise) Error: Could not establish connection. Receiving end does not exist."
- Restarting the server in the JEE applications
- The behavior of the executable file differs from that of the live server
- Live server is not auto reload when i hit save on my Vscode
- HTML: Images not loading on VSC
- browser attempts to open local host every time I run any script in vs code file
- TailwindCss classes are not reflected when i start live-server
- Running html on a local host gives strange error message
- how to open 2 different files with live server in vscode
- Functions works locally but when using Live Server it is undefined, any idea what
- Php Mailer Not Working on live server but working on local host :(
- Debug a javascript function in visual studio code using liveserver extension while my local host(IIS) is occupied with another environment
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
You need to change the port of one of your servers. To do this, go to your
settings.jsonfile and assign the value"liveServer.settings.port": 0to either 0 (for a random port) or another value that is not 5500 so that the servers are running on separate ports.See this answer for more info: Where to set value of liveServer.settings.port in live server extension of visual studio code