Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

This is an extension for Visual Studio Code that the current folder opened in VS Code can be run as a website using IIS Express

NotificationsYou must be signed in to change notification settings

warrenbuckley/IIS-Express-Code

Repository files navigation

This extension gives you the power to run a folder open in Visual Studio Code as a website using an IIS Express web server.

Visual Studio Marketplace VersionVisual Studio Marketplace InstallsVisual Studio Marketplace DownloadsVisual Studio Marketplace Rating

Sponsorware

This is afree extension I have made for VSCode, if you find it useful to yourself or your business thenI would love you to consider sponsoring me on Github please

Features

  • Auto opens folder in browser
  • Super simple way from the command pallete to start & stop the website
  • See ouput from the IIS Express command line directly in Visual Studio
  • Support for PHP viaApplicationHost.config common changes for all sites running with IIS Express

Requirements

  • Windows Machine (Sorry not for Linux, OSX or Web)

How do I Install IIS Express for VSCode?

Open the command pallete in VSCode & typeext install then search forIIS Express alternatively you candownload the IIS Express for VSCode extension on the marketplace

Installing IIS Express for VSCode

Settings for IIS Express

IIS Express for VSCode automatically generates a default config file for you & stores it at.vscode/iisexpress.jsonYou can modify this file on disk inside VSCode to get intellisens/autocompletion for the available properties for you to set

SettingAliasDescriptionRequired
Port NumberportThe port number you wish to use for IIS Express
Folder Path of SitepathThis property is optional & allows you to set an absolute path to the folder or subfolder as the root of your site/project for IIS Express to run. Additionally this support relative paths to the workspace folder such as./my-sub-folder
CLRclrThis property is optional & allows you to set AppPool CLR version, 2.0 vs 4.0
ProtocolprotocolThis property is optional & allows you to set http or https
Url SuffixurlThis property is optional & allows you to set the page URL you wish to open eg: '/about/the-team'

Default Settings

By default with the file not generated it will create the following file for you on disk and setting a random port number.

{"port":18420,"path":"./","clr":"v4.0","protocol":"http"}

Global Settings for IIS Express for VSCode

Below is a table of settings that can be used to configure IIS Express for VSCode. You can easily get to these settings by using the settings (cog) icon in the IIS Express pane found by default under the file explorer.

SettingAliasDescriptionDefault Value
Path to IISExpress.exeiisexpress.iisExpressPathAn absolute path toIISExpress.exe such asC:\Program Files\IIS Express\iisexpress.exenull - We try to use default program path location
Path to AppCmd.exeiisexpress.appcmdPathAn absolute path toappcmd.exe such asC:\Program Files\IIS Express\appcmd.exenull - We try to use default program path location
Auto launch browseriisexpress.autoLaunchBrowserAn option to disable or enable the browser from launching the site when IIS Express starts. By default this istruetrue
Open in browseriisexpress.autoLaunchBrowserDecide which browser to auto launch the site with wheniisexpress.autoLaunchBrowser is set totruedefault (default, chrome, msedge, firefox, opera)

Available commands

  • Start Website - Start the current folder run as a website
  • Stop Website - Stop the current folder run as a website
  • Restart Website - Restart (Stop & Start) the current folder run as a website
  • Become a supporter - Opens a webpage to my GitHub Sponsor page if you wish to donate & become a sponsor
  • Open Settings - This directly opens VSCode settings for IIS Express

How do I use the extension?

The VSCode command pallete is your friend. PressF1 on the keyboard and start typing IISExpress to see the list of commands to use.Alternatively is version 1.2.0 and newer there is a new panel view that by default lives under the list of files in the file explorer, in newer versions of VSCode you are able to drag and drop this pane around to a new location if you prefer to put it elsewhere.

How do I use HTTPS for my site?

To enable HTTPS for your site use the settings file.vscode/iisexpress.json set the propertyprotocol tohttps and ensure the port property is in the range between44300 - 44399

How do I run site on a specific port number?

If you need to run your application on a specific port number, you can edit theport property in the.vscode/iisexpress.json. The next time the application runs it will use the new & updated port number.

How do I change keymappings for IIS Express for VSCode

By default IIS Express for VSCode binds to the following keyboard shortcuts, you may prefer to change these keybindings if you find them conflicting in your workflows.The best way to do this is toread the official documentation from VSCode.

Keyboard ShortcutCommand
ctrl+f5Start Site
shift+f5Stop Site
ctrl+shift+f5Restart Site

Customize Icon Colors

With version 1.4.0 and newer it is now possible to change the colors of the icons displayed in the tree view, if you wish to customise them you can do so by using the documentation from VSCode

https://code.visualstudio.com/docs/getstarted/themes#_customizing-a-color-theme

AliasDefault Color
iisexpress.startIcondebugIcon.startForeground
iisexpress.stopIcondebugIcon.stopForeground
iisexpress.restartIcondebugIcon.pauseForeground
iisexpress.supporterIconterminal.ansiBrightMagenta

About

This is an extension for Visual Studio Code that the current folder opened in VS Code can be run as a website using IIS Express

Topics

Resources

Stars

Watchers

Forks

Sponsor this project

 

Contributors7


[8]ページ先頭

©2009-2026 Movatter.jp