diff --git a/CODE_OF_CONDUCT.md b/CODE_OF_CONDUCT.md index 277a4623c6..60c962201a 100644 --- a/CODE_OF_CONDUCT.md +++ b/CODE_OF_CONDUCT.md @@ -4,6 +4,6 @@ This project has adopted the [Microsoft Open Source Code of Conduct](https://ope Resources: -* [Microsoft Open Source Code of Conduct](https://opensource.microsoft.com/codeofconduct) -* [Microsoft Code of Conduct FAQ](https://opensource.microsoft.com/codeofconduct/faq) -* Contact [opencode@microsoft.com](mailto:opencode@microsoft.com) with questions or concerns +* [Microsoft Open Source Code of Conduct](https://opensource.microsoft.com/codeofconduct) +* [Microsoft Code of Conduct FAQ](https://opensource.microsoft.com/codeofconduct/faq) +* Contact [opencode@microsoft.com](mailto:opencode@microsoft.com) with questions or concerns diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index af29e0a26f..8240df888a 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -124,6 +124,6 @@ Be sure to include the topic title and the URL for the page. ## See also -* [Getting started with writing and formatting on GitHub](https://help.github.com/github/writing-on-github/getting-started-with-writing-and-formatting-on-github) -* [Docs Contributor Guide](https://learn.microsoft.com/contribute/) -* [README](README.md) +* [Getting started with writing and formatting on GitHub](https://help.github.com/github/writing-on-github/getting-started-with-writing-and-formatting-on-github) +* [Docs Contributor Guide](https://learn.microsoft.com/contribute/) +* [README](README.md) diff --git a/README.md b/README.md index b5b3ee9310..260b01118a 100644 --- a/README.md +++ b/README.md @@ -31,11 +31,11 @@ For the latest implementation status and future plans for web platform features ### File names and directories -* When adding a webpage (an article implemented as a .md file), you must add an entry for the new webpage in [toc.yml](microsoft-edge/toc.yml), for the article to appear in the Table of Contents. +* When adding a webpage (an article implemented as a .md file), you must add an entry for the new webpage in [toc.yml](microsoft-edge/toc.yml), for the article to appear in the Table of Contents. -* A directory can contain more directories or `readme.md` files. +* A directory can contain more directories or `readme.md` files. -* Folder/directory names are dash-separated (for example, `f12-tools`) and lowercase. Directories are used in URLs on the `learn.microsoft.com` site. Avoid using underscores, PascalCase, or camelCase. +* Folder/directory names are dash-separated (for example, `f12-tools`) and lowercase. Directories are used in URLs on the `learn.microsoft.com` site. Avoid using underscores, PascalCase, or camelCase. diff --git a/microsoft-edge/accessibility/build/index.md b/microsoft-edge/accessibility/build/index.md index 27689bf830..f2c13645de 100644 --- a/microsoft-edge/accessibility/build/index.md +++ b/microsoft-edge/accessibility/build/index.md @@ -24,8 +24,8 @@ Visit [HTML5Accessibility](https://html5accessibility.com) for information on wh Assistive technologies add capabilities that computers don't usually have. For example, a user who has low vision might use their keyboard in combination with assistive technology such as a screen reader, rather than directly using the browser with the mouse and screen. For applications on Microsoft platforms and on the web, the assistive technology interacts with any combination of: -* Microsoft [UI Automation](/windows/win32/winauto/uiauto-specandcommunitypromise). -* An application-specific object model such as the Document Object Model (DOM) in Microsoft Edge. +* Microsoft [UI Automation](/windows/win32/winauto/uiauto-specandcommunitypromise). +* An application-specific object model such as the Document Object Model (DOM) in Microsoft Edge. For web developers, certain HTML elements are mapped to UI Automation objects, so in selecting those HTML elements, the developer can use the accessibility properties and events built in to those elements. While developing your website, you usually only need to make sure that the API is correctly written to, or that the appropriate element is specified, for the application to be accessible. @@ -77,8 +77,8 @@ Verifying that the website you are building works with real assistive technologi Once you are confident that your website works well with a keyboard, try it with other assistive technologies, such as screen readers. This testing can uncover issues in the following: -* Your HTML, ARIA, and CSS. -* The level of support of an assistive technology for a feature or technique. +* Your HTML, ARIA, and CSS. +* The level of support of an assistive technology for a feature or technique. Different browsers might map elements to the platform accessibility APIs differently than Microsoft Edge maps them. While building your interface, it's important to consider each difference. @@ -116,7 +116,7 @@ Under macOS, if you want to test with an assistive technology only available for If an assistive technology isn't available on your OS or you not possible to install one on a virtual machine or emulator, cloud-based assistive technology testing tools are the next best thing. -* [Assistiv Labs](https://assistivlabs.com) (a commercial product) enables you to manually test with assistive technologies through any modern web browser. Select an assistive technology and browser and it connects you with a virtual machine, emulator, or real device that you can interact with. +* [Assistiv Labs](https://assistivlabs.com) (a commercial product) enables you to manually test with assistive technologies through any modern web browser. Select an assistive technology and browser and it connects you with a virtual machine, emulator, or real device that you can interact with. See also [Cloud-based emulators and simulators](../../devtools/device-mode/testing-other-browsers.md#cloud-based-emulators-and-simulators). diff --git a/microsoft-edge/accessibility/design.md b/microsoft-edge/accessibility/design.md index 384684f920..a374e04733 100644 --- a/microsoft-edge/accessibility/design.md +++ b/microsoft-edge/accessibility/design.md @@ -30,13 +30,13 @@ Users who are blind or who have low vision rely on screen readers to interpret a Many accessibility users rely on the keyboard to navigate and operate the UI by: -* Moving focus among elements by pressing the **Tab** key or **Shift+Tab** keys. +* Moving focus among elements by pressing the **Tab** key or **Shift+Tab** keys. -* Navigating in container elements such as lists, grids, and tree views by using the arrow keys. +* Navigating in container elements such as lists, grids, and tree views by using the arrow keys. -* Invoking actions by pressing the **Enter** key or **Spacebar**. +* Invoking actions by pressing the **Enter** key or **Spacebar**. -* Using shortcut keys to efficiently access other app functionality. +* Using shortcut keys to efficiently access other app functionality. @@ -50,10 +50,10 @@ Many common accessibility issues on the web can be solved through good coding pr ## Resources -* [Designing for Inclusion](https://w3.org/WAI/users/Overview.html) - Designing for Inclusion by the W3C Web Accessibility Initiative provides resources to help you better understand users with disabilities and how to design your website with them in mind. +* [Designing for Inclusion](https://w3.org/WAI/users/Overview.html) - Designing for Inclusion by the W3C Web Accessibility Initiative provides resources to help you better understand users with disabilities and how to design your website with them in mind. -* [Designing inclusive software](https://msdn.microsoft.com/windows/uwp/accessibility/designing-inclusive-software) - Designing inclusive software discusses Microsoft design principles and practices for the Universal Windows Platform (UWP). +* [Designing inclusive software](https://msdn.microsoft.com/windows/uwp/accessibility/designing-inclusive-software) - Designing inclusive software discusses Microsoft design principles and practices for the Universal Windows Platform (UWP). -* [How People with Disabilities Use the Web](https://www.w3.org/WAI/intro/people-use-web/Overview.html) - This resource by the W3C introduces how people with disabilities, including people with age-related impairments, use the Web. +* [How People with Disabilities Use the Web](https://www.w3.org/WAI/intro/people-use-web/Overview.html) - This resource by the W3C introduces how people with disabilities, including people with age-related impairments, use the Web. -* [Inclusive Design Toolkit](https://www.microsoft.com/design/practice#howwemake-section) - Microsoft developed the Inclusive Design Toolkit to show how human diversity can create better design constraints and how to connect seemingly niche solutions to broader markets. +* [Inclusive Design Toolkit](https://www.microsoft.com/design/practice#howwemake-section) - Microsoft developed the Inclusive Design Toolkit to show how human diversity can create better design constraints and how to connect seemingly niche solutions to broader markets. diff --git a/microsoft-edge/accessibility/index.md b/microsoft-edge/accessibility/index.md index f7ba0b4a46..7688e455d2 100644 --- a/microsoft-edge/accessibility/index.md +++ b/microsoft-edge/accessibility/index.md @@ -26,11 +26,11 @@ The articles in this Accessibility section present some best practices, code sam Microsoft Edge DevTools is built into the Microsoft Edge browser, and includes many accessibility-testing features, to test aspects of webpages including: -* Alt-text for images, and screen reader support. -* Keyboard support. -* Text contrast. -* Usability with vision deficiencies. -* Usability when the browser is narrow. +* Alt-text for images, and screen reader support. +* Keyboard support. +* Text contrast. +* Usability with vision deficiencies. +* Usability when the browser is narrow. See: diff --git a/microsoft-edge/accessibility/test.md b/microsoft-edge/accessibility/test.md index 0b8c210e9e..3ab34cb2e1 100644 --- a/microsoft-edge/accessibility/test.md +++ b/microsoft-edge/accessibility/test.md @@ -58,20 +58,20 @@ You can also use the assessment feature of [Accessibility Insights](https://acce ## External articles and websites -* [Assistive technology compatibility tests](http://www.powermapper.com/tests) - Test results showing how different content types and standards behave in assistive technologies (AT) such as screen readers. +* [Assistive technology compatibility tests](http://www.powermapper.com/tests) - Test results showing how different content types and standards behave in assistive technologies (AT) such as screen readers. -* [HTML5Accessibility](https://html5accessibility.com) - This site tests which new HTML5 features are accessibly supported by major browsers. +* [HTML5Accessibility](https://html5accessibility.com) - This site tests which new HTML5 features are accessibly supported by major browsers. -* [webhint](https://webhint.io) - Use webhint to check for out-of-date libraries, security improvements, performance problems, and accessibility issues. +* [webhint](https://webhint.io) - Use webhint to check for out-of-date libraries, security improvements, performance problems, and accessibility issues. -* [Web Accessibility Evaluation Tools List](https://www.w3.org/WAI/ER/tools/index.html) - A list of web accessibility evaluation tools to help determine if websites meet accessibility guidelines. +* [Web Accessibility Evaluation Tools List](https://www.w3.org/WAI/ER/tools/index.html) - A list of web accessibility evaluation tools to help determine if websites meet accessibility guidelines. ## The Web Accessibility Initiative (WAI) -* [Accessibility Evaluation Resources](https://www.w3.org/WAI/eval/Overview.html) - Approaches for evaluating websites for accessibility. +* [Accessibility Evaluation Resources](https://www.w3.org/WAI/eval/Overview.html) - Approaches for evaluating websites for accessibility. -* [Easy Checks – A First Review of Web Accessibility](https://www.w3.org/WAI/eval/preliminary.html) - Quick checks that help you assess the accessibility of a webpage. +* [Easy Checks – A First Review of Web Accessibility](https://www.w3.org/WAI/eval/preliminary.html) - Quick checks that help you assess the accessibility of a webpage. -* [How to Meet WCAG 2.0](https://www.w3.org/WAI/WCAG20/quickref) - A quick reference to Web Content Accessibility Guidelines (WCAG), requirements, success criteria, and techniques. +* [How to Meet WCAG 2.0](https://www.w3.org/WAI/WCAG20/quickref) - A quick reference to Web Content Accessibility Guidelines (WCAG), requirements, success criteria, and techniques. diff --git a/microsoft-edge/develop-web-microsoft-edge.md b/microsoft-edge/develop-web-microsoft-edge.md index 81a818f0e4..a1bb7fea9c 100644 --- a/microsoft-edge/develop-web-microsoft-edge.md +++ b/microsoft-edge/develop-web-microsoft-edge.md @@ -46,15 +46,15 @@ The Microsoft Edge browser comes with built-in web development tools, called Mic With DevTools, you can do the following: -* Inspect, tweak, and change the styles of elements in the webpage using live tools with a visual interface. Inspect where the browser stored content to construct the webpage, including `.html`, `.css`, `.js`, and `.png` file formats. +* Inspect, tweak, and change the styles of elements in the webpage using live tools with a visual interface. Inspect where the browser stored content to construct the webpage, including `.html`, `.css`, `.js`, and `.png` file formats. -* Emulate how your webpage behaves on different devices and simulate a mobile environment, complete with different network conditions. Inspect the network traffic and see the location of the problems. +* Emulate how your webpage behaves on different devices and simulate a mobile environment, complete with different network conditions. Inspect the network traffic and see the location of the problems. -* Debug your JavaScript using breakpoint debugging and with the live console. Find memory problems and rendering issues with your web apps. +* Debug your JavaScript using breakpoint debugging and with the live console. Find memory problems and rendering issues with your web apps. -* Find accessibility, performance, compatibility, and security issues in your products, and use DevTools to fix the accessibility issues that are found. +* Find accessibility, performance, compatibility, and security issues in your products, and use DevTools to fix the accessibility issues that are found. -* Use a development environment to sync changes in DevTools with the file system and from the web. +* Use a development environment to sync changes in DevTools with the file system and from the web. @@ -70,9 +70,9 @@ You can create a Microsoft Edge extension if you have an idea or product that is A Microsoft Edge extension is structured similarly to a regular web app, and usually includes: -* An app manifest JSON file that contains basic platform information. -* A JavaScript file that defines the behavior of the browser extension. -* HTML and CSS files that define the user interface. +* An app manifest JSON file that contains basic platform information. +* A JavaScript file that defines the behavior of the browser extension. +* HTML and CSS files that define the user interface. See [Overview of Microsoft Edge extensions](./extensions/index.md). @@ -111,12 +111,12 @@ See [Introduction to Microsoft Edge WebView2](./webview2/index.md). The following are tools to automate testing in Microsoft Edge: -* **DevTools Protocol** is used to instrument, inspect, debug, and profile browsers. -* Use **origin trials** to try experimental APIs. -* **Playwright** provides cross-browser automation through a single API. -* **Puppeteer**'s API controls Microsoft Edge via DevTools Protocol. -* **WebDriver** simulates user interaction with Microsoft Edge. -* **webhint** linting checks code for errors and best practices. +* **DevTools Protocol** is used to instrument, inspect, debug, and profile browsers. +* Use **origin trials** to try experimental APIs. +* **Playwright** provides cross-browser automation through a single API. +* **Puppeteer**'s API controls Microsoft Edge via DevTools Protocol. +* **WebDriver** simulates user interaction with Microsoft Edge. +* **webhint** linting checks code for errors and best practices. See [Test and automation in Microsoft Edge](./test-and-automation/test-and-automation.md). diff --git a/microsoft-edge/developer/index.yml b/microsoft-edge/developer/index.yml index 5fd9d93e06..d2cf357b08 100644 --- a/microsoft-edge/developer/index.yml +++ b/microsoft-edge/developer/index.yml @@ -114,9 +114,12 @@ landingContent: - text: Overview of Microsoft Edge extensions url: ../extensions/index.md - - text: Extension concepts and architecture + - text: Get started developing an extension url: ../extensions/getting-started/index.md + - text: Extension concepts and architecture + url: ../extensions/getting-started/architecture.md + - linkListType: sample links: - text: "Sample: Picture viewer pop-up webpage" diff --git a/microsoft-edge/devtools/network-request-blocking/network-request-blocking-tool.md b/microsoft-edge/devtools/network-request-blocking/network-request-blocking-tool.md index 9ac4cd870d..cab872051f 100644 --- a/microsoft-edge/devtools/network-request-blocking/network-request-blocking-tool.md +++ b/microsoft-edge/devtools/network-request-blocking/network-request-blocking-tool.md @@ -65,13 +65,13 @@ See also: To delete a specific network blocking request pattern: -* In the **Network request blocking** table, hover over a network blocking request pattern, and then click the **Remove** () button: +* In the **Network request blocking** table, hover over a network blocking request pattern, and then click the **Remove** () button:  To delete all network blocking requests at once: -* In the toolbar, click the **Remove all patterns** () button. +* In the toolbar, click the **Remove all patterns** () button. @@ -79,7 +79,7 @@ To delete all network blocking requests at once: To change an existing blocked network request: -* In the **Network request blocking** table, hover over a blocked network request, and then click **Edit** (): +* In the **Network request blocking** table, hover over a blocked network request, and then click **Edit** ():  @@ -89,7 +89,7 @@ To change an existing blocked network request: To toggle network request blocking without having to delete and re-create all of the blocked network requests: -* In the toolbar, select or clear the **Enable network request blocking** checkbox: +* In the toolbar, select or clear the **Enable network request blocking** checkbox:  diff --git a/microsoft-edge/devtools/overview.md b/microsoft-edge/devtools/overview.md index 3b3afde799..6ee38790aa 100644 --- a/microsoft-edge/devtools/overview.md +++ b/microsoft-edge/devtools/overview.md @@ -69,15 +69,15 @@ DevTools provides a powerful way to inspect and debug webpages and web apps. Yo With DevTools, you can do the following: -* Inspect, tweak, and change the styles of elements in the webpage using live tools with a visual interface. Inspect where the browser stored content to construct the webpage, including `.html`, `.css`, `.js`, and `.png` file formats. +* Inspect, tweak, and change the styles of elements in the webpage using live tools with a visual interface. Inspect where the browser stored content to construct the webpage, including `.html`, `.css`, `.js`, and `.png` file formats. -* Emulate how your website behaves on different devices and simulate a mobile environment, complete with different network conditions. Inspect the network traffic and see the location of the problems. +* Emulate how your website behaves on different devices and simulate a mobile environment, complete with different network conditions. Inspect the network traffic and see the location of the problems. -* Debug your JavaScript using breakpoint debugging and with the live console. Find memory problems and rendering issues with your web apps. +* Debug your JavaScript using breakpoint debugging and with the live console. Find memory problems and rendering issues with your web apps. -* Find accessibility, performance, compatibility, and security issues in your products, and use DevTools to fix the accessibility issues that are found. +* Find accessibility, performance, compatibility, and security issues in your products, and use DevTools to fix the accessibility issues that are found. -* Use a development environment to sync changes in DevTools with the file system and from the web. +* Use a development environment to sync changes in DevTools with the file system and from the web. @@ -130,9 +130,9 @@ hit counts: **Ctrl+Shift+I** 21 (in 11) **Ctrl+Shift+C** 7 (in 6) -**Command+Option+J** 21 (in 12) +**Command+Option+J** 21 (in 12) **Command+Option+I** 15 (in 6) -**Command+Option+C** 3 (in 2) +**Command+Option+C** 3 (in 2) --> @@ -247,9 +247,9 @@ To zoom the rendered page, click the page, and then use the same keyboard shortc 1. Click the **Customize and control DevTools** () menu button, and then select **Run command**. 1. In the **Command Menu**, start typing **zoom**, and then select a zoom command: - * **Reset zoom level** - * **Zoom in** - * **Zoom out** + * **Reset zoom level** + * **Zoom in** + * **Zoom out** @@ -267,31 +267,31 @@ The DevTools user interface has the following main areas: By default, the **Activity Bar** contains the following tools: -* **Inspect** tool () toggle button. +* **Inspect** tool () toggle button. -* **Device Emulation** tool () button. +* **Device Emulation** tool () button. -* **Welcome** tool (). +* **Welcome** tool (). -* **Elements** tool (). +* **Elements** tool (). -* **Console** tool (). +* **Console** tool (). -* **Sources** tool (). +* **Sources** tool (). -* **Network** tool (). +* **Network** tool (). -* **Performance** tool (). +* **Performance** tool (). -* **Memory** tool (). +* **Memory** tool (). -* **Application** tool (). +* **Application** tool (). By default, the **Quick View** toolbar contains the following tools: -* **Console** tool (). +* **Console** tool (). -* **Issues** tool (). +* **Issues** tool (). In the **Activity Bar**, tool tabs either contain the tool name and icon, or just the tool icon, depending on the width of the DevTools window. If the window is wide enough, the tool name and icon appear. If the window is too narrow, only the tool icon appears and the tool name appears when you hover over the tool icon. @@ -336,28 +336,28 @@ There are two toolbars: the **Activity Bar** at the top of DevTools, and the **Q The **Activity Bar** contains the following features: * Icon tools: - * **Inspect tool** () toggle button. - * **Device Emulation** () button. + * **Inspect tool** () toggle button. + * **Device Emulation** () button. * Tool tabs: - * **Welcome** tool. - * **Elements** tool. Permanent. - * **Console** tool. Permanent. - * **Sources** tool. Permanent. - * **Network** tool. - * **Performance** tool. - * **Memory** tool. - * **Application** tool. + * **Welcome** tool. + * **Elements** tool. Permanent. + * **Console** tool. Permanent. + * **Sources** tool. Permanent. + * **Network** tool. + * **Performance** tool. + * **Memory** tool. + * **Application** tool. * Icons: - * **More tools** () button. - * **Customize and control DevTools** () menu button. - * **Help** () button. - * **Close** DevTools () button. + * **More tools** () button. + * **Customize and control DevTools** () menu button. + * **Help** () button. + * **Close** DevTools () button.  @@ -421,8 +421,8 @@ The **Elements** tool is always present on the **Activity Bar**. In the **Console** tool, you can: -* View and filter logged messages from network requests or from JavaScript log statements. -* Enter JavaScript statements to evaluate in realtime. Expressions are evaluated in the current context, such as when the JavaScript debugger in the **Sources** tool is paused at a breakpoint. +* View and filter logged messages from network requests or from JavaScript log statements. +* Enter JavaScript statements to evaluate in realtime. Expressions are evaluated in the current context, such as when the JavaScript debugger in the **Sources** tool is paused at a breakpoint. The **Console** tool is always present on the **Activity Bar** and on the **Quick View** toolbar. @@ -549,9 +549,9 @@ The **More tools** () b In addition to **Activity Bar** and **Quick View** tools, DevTools includes the following tools: -* The **Inspect** tool. See [Use the Inspect tool to detect accessibility issues by hovering over the webpage](accessibility/test-inspect-tool.md). -* The **Device Emulation** tool. See [Emulate mobile devices (Device Emulation)](device-mode/index.md). -* The **Command Menu**. See [Run commands with the Microsoft Edge DevTools Command Menu](command-menu/index.md). +* The **Inspect** tool. See [Use the Inspect tool to detect accessibility issues by hovering over the webpage](accessibility/test-inspect-tool.md). +* The **Device Emulation** tool. See [Emulate mobile devices (Device Emulation)](device-mode/index.md). +* The **Command Menu**. See [Run commands with the Microsoft Edge DevTools Command Menu](command-menu/index.md). @@ -571,8 +571,8 @@ In the **Command Menu**, the tools are called "panels"; for example, the **Eleme 1. To open the **Command Menu**, do either of the following: - * Click the **Customize and control DevTools** () button, and then select **Run command**. - * Press **Ctrl+Shift+P** (Windows, Linux) or **Command+Shift+P** (macOS). + * Click the **Customize and control DevTools** () button, and then select **Run command**. + * Press **Ctrl+Shift+P** (Windows, Linux) or **Command+Shift+P** (macOS). The **Command Menu** allows you to type commands to display, hide, or run features in DevTools. @@ -601,12 +601,12 @@ In the **Settings** > **Preferences** page, you can change several parts of DevT You can also change the settings of advanced features, such as: -* Add local files to a [Workspace](workspaces/index.md). -* Filter library code by using the **Ignore List**. -* Define the **Devices** you want to include in the device simulation and test mode. For more information, see [Emulate mobile devices (Device Emulation)](device-mode/index.md). -* Select a network **Throttling** profile. -* Define simulated **Locations**. -* Customize keyboard **Shortcuts**. For example, to use the same shortcuts in DevTools as in Visual Studio Code, select **Match shortcuts from preset** > **Visual Studio Code**. +* Add local files to a [Workspace](workspaces/index.md). +* Filter library code by using the **Ignore List**. +* Define the **Devices** you want to include in the device simulation and test mode. For more information, see [Emulate mobile devices (Device Emulation)](device-mode/index.md). +* Select a network **Throttling** profile. +* Define simulated **Locations**. +* Customize keyboard **Shortcuts**. For example, to use the same shortcuts in DevTools as in Visual Studio Code, select **Match shortcuts from preset** > **Visual Studio Code**.  diff --git a/microsoft-edge/devtools/performance-monitor/performance-monitor-tool.md b/microsoft-edge/devtools/performance-monitor/performance-monitor-tool.md index d8ce548b25..78b1be7b3d 100644 --- a/microsoft-edge/devtools/performance-monitor/performance-monitor-tool.md +++ b/microsoft-edge/devtools/performance-monitor/performance-monitor-tool.md @@ -13,9 +13,9 @@ ms.date: 11/22/2023 Use the **Performance monitor** tool to get a real-time view of the runtime performance of a webpage. The **Performance monitor** tool helps determine where performance problems come from. There are various reasons why a website might run slowly. This tool provides clues to understand whether the problems are related to causes such as the following: -* High memory or CPU usage. -* Too frequent layout and style calculations. -* Too many DOM nodes and event listeners. +* High memory or CPU usage. +* Too frequent layout and style calculations. +* Too many DOM nodes and event listeners. diff --git a/microsoft-edge/devtools/performance/index.md b/microsoft-edge/devtools/performance/index.md index f8b67f8e44..4b8a5eff55 100644 --- a/microsoft-edge/devtools/performance/index.md +++ b/microsoft-edge/devtools/performance/index.md @@ -307,7 +307,7 @@ Record the optimized code performance, as follows: ## Step 9: Analyze the optimized code's performance -* Using the workflows and tools that you just learned, analyze the results in the performance, like in [Step 5: Analyze the unoptimized code's performance](#step-5-analyze-the-unoptimized-codes-performance), above. +* Using the workflows and tools that you just learned, analyze the results in the performance, like in [Step 5: Analyze the unoptimized code's performance](#step-5-analyze-the-unoptimized-codes-performance), above. From the improved framerate to the reduction in events in the flame chart in the **Main** section, the optimized version of the app does much less work, resulting in better performance. diff --git a/microsoft-edge/devtools/performance/reference.md b/microsoft-edge/devtools/performance/reference.md index a13cad0f52..cc6a30f1f3 100644 --- a/microsoft-edge/devtools/performance/reference.md +++ b/microsoft-edge/devtools/performance/reference.md @@ -704,11 +704,11 @@ The chart collapses ignored scripts, marks them as **On ignore list**, and adds After recording a page, in addition to the **Main** section to analyze activities, DevTools also provides three tabular views for analyzing activities. Each view gives you a different perspective on the activities: -* To view the activities where the most time was directly spent, use the [Bottom-up](#the-bottom-up-tab) tab. +* To view the activities where the most time was directly spent, use the [Bottom-up](#the-bottom-up-tab) tab. -* To view the root activities that cause the most work, use the [Call tree](#the-call-tree-tab) tab. +* To view the root activities that cause the most work, use the [Call tree](#the-call-tree-tab) tab. -* To view the activities in the order in which they occurred during the recording, use the [Event log](#the-event-log-tab) tab. +* To view the activities in the order in which they occurred during the recording, use the [Event log](#the-event-log-tab) tab. To help you find what you are looking for faster, all three tabs have buttons for advanced filtering next to the **Filter** bar: @@ -909,9 +909,9 @@ View raster activity in the **Thread Pool** section. DevTools provides two ways to analyze frames per second: -* Use the **Frames** section to view how long a particular frame took. See [The Frames section](#the-frames-section), below. +* Use the **Frames** section to view how long a particular frame took. See [The Frames section](#the-frames-section), below. -* Use the **FPS meter** for a realtime estimate of FPS as the page runs. See [View frames per second in realtime with the FPS meter](#view-frames-per-second-in-realtime-with-the-fps-meter), below. +* Use the **FPS meter** for a realtime estimate of FPS as the page runs. See [View frames per second in realtime with the FPS meter](#view-frames-per-second-in-realtime-with-the-fps-meter), below. @@ -1062,7 +1062,7 @@ To view advanced information about a paint event: To view statistics about the selectors of the CSS rules that got recalculated during a performance recording: -* In the **Performance** tool, click the **Capture settings** () button, and then select the **Enable advanced rendering instrumentation (slow)** checkbox. +* In the **Performance** tool, click the **Capture settings** () button, and then select the **Enable advanced rendering instrumentation (slow)** checkbox. DevTools displays aggregate information about the selectors of the CSS rules that were recalculated during the recording in the **Selector Stats** tab: @@ -1274,13 +1274,13 @@ When **Disable local fonts** is selected, DevTools ignores the `local()` fonts a  This feature is useful if you use two different copies of the same font during development, such as: -* A local font for your design tools. -* A web font for your code. +* A local font for your design tools. +* A web font for your code. Use **Disable local fonts** to make it easier to: -* Debug and measure loading performance and optimization of web fonts. -* Verify accuracy of your CSS `@font-face` rules. -* Discover differences between local versions installed on your device and a web font. +* Debug and measure loading performance and optimization of web fonts. +* Verify accuracy of your CSS `@font-face` rules. +* Discover differences between local versions installed on your device and a web font. diff --git a/microsoft-edge/devtools/progressive-web-apps/index.md b/microsoft-edge/devtools/progressive-web-apps/index.md index b4c249867a..d8da30a8bf 100644 --- a/microsoft-edge/devtools/progressive-web-apps/index.md +++ b/microsoft-edge/devtools/progressive-web-apps/index.md @@ -93,7 +93,7 @@ The **App Manifest** pane contains the following sections: * **Screenshot #2** * To view the manifest source file, click the link below the **App Manifest** label. In the previous figure, that link is `manifest.json`, which opens `https://airhorner.com/manifest.json`, for [Airhorner.com](https://airhorner.com). - + * The **Identity** and **Presentation** sections display fields from the manifest source in a more user-friendly display. diff --git a/microsoft-edge/devtools/quick-source/quick-source-tool.md b/microsoft-edge/devtools/quick-source/quick-source-tool.md index c7106f3bbb..bbb4e05177 100644 --- a/microsoft-edge/devtools/quick-source/quick-source-tool.md +++ b/microsoft-edge/devtools/quick-source/quick-source-tool.md @@ -187,7 +187,7 @@ Continue with the next section. Suppose you want to continue viewing the **Elements** tool, but you want to simultaneously view and edit the source files that were opened via the **Sources** tool. -1. Continuing from above, in the **Activity Bar** at the top of DevTools, select a tool other than the **Sources** () tool, such as the **Elements** () tool. +1. Continuing from above, in the **Activity Bar** at the top of DevTools, select a tool other than the **Sources** () tool, such as the **Elements** () tool. 1. If the **Quick View** toolbar isn't shown at the bottom of DevTools, press **Esc**. diff --git a/microsoft-edge/devtools/recorder/index.md b/microsoft-edge/devtools/recorder/index.md index 0639bc6856..2fc3d4e8ed 100644 --- a/microsoft-edge/devtools/recorder/index.md +++ b/microsoft-edge/devtools/recorder/index.md @@ -118,7 +118,7 @@ To see what's happening in the rendered page while the user interactions are bei To slow down the replay speed: -* Click the dropdown arrow next to **Replay** in the top-right corner of the **Recorder** tool, and then select a speed from the dropdown menu, such as **Slow**, **Very slow**, or **Extremely slow**: +* Click the dropdown arrow next to **Replay** in the top-right corner of the **Recorder** tool, and then select a speed from the dropdown menu, such as **Slow**, **Very slow**, or **Extremely slow**:  diff --git a/microsoft-edge/devtools/remote-debugging/index.md b/microsoft-edge/devtools/remote-debugging/index.md index fe4df6dc54..816dbfdb0b 100644 --- a/microsoft-edge/devtools/remote-debugging/index.md +++ b/microsoft-edge/devtools/remote-debugging/index.md @@ -25,11 +25,11 @@ ms.date: 05/04/2021 Remote debug live content on an Android device from your Windows or macOS computer. The following tutorial page teaches you how to: -* Set up your Android device for remote debugging, and discover it from your development machine. +* Set up your Android device for remote debugging, and discover it from your development machine. -* Inspect and debug live content on your Android device from your development machine. +* Inspect and debug live content on your Android device from your development machine. -* Screencast content from your Android device onto a DevTools instance on your development machine. +* Screencast content from your Android device onto a DevTools instance on your development machine. . @@ -133,16 +133,16 @@ Click the **Toggle Screencast** ( before running the [Surface Duo emulator](/dual-screen/android/use-emulator). See [Get the Surface Duo SDK](/dual-screen/android/get-duo-sdk). +* Install the [Surface Duo SDK](https://www.microsoft.com/download/details.aspx?id=100847) before running the [Surface Duo emulator](/dual-screen/android/use-emulator). See [Get the Surface Duo SDK](/dual-screen/android/get-duo-sdk). ## Step 1: Go to edge://inspect -* Open a desktop instance of Microsoft Edge, and go to `edge://inspect`: +* Open a desktop instance of Microsoft Edge, and go to `edge://inspect`: > [!div class="mx-imgBorder"] >  @@ -33,7 +33,7 @@ If the `edge://inspect` page doesn't recognize the [Surface Duo emulator](/dual- ## Step 2: Launch the Surface Duo emulator -* Launch the [Surface Duo emulator](/dual-screen/android/use-emulator). The emulator displays two different screens running on the emulator: +* Launch the [Surface Duo emulator](/dual-screen/android/use-emulator). The emulator displays two different screens running on the emulator:  @@ -90,8 +90,8 @@ To understand how the hinge impacts the layout of your web content, use the [Sur The web is a great platform for the new class of foldable and dual-screen devices, because you can write your HTML, CSS, and JavaScript once, and have it look great across single-screen, dual-screen, and foldable devices. See the following additional resources to get started building web content for these new devices. -* [Surface Duo developer documentation](/dual-screen/index) - Documentation for creating apps on dual-screen devices. +* [Surface Duo developer documentation](/dual-screen/index) - Documentation for creating apps on dual-screen devices. -* [Web Platform Primitives for Enlightened Experiences on Foldable Devices](https://github.com/MicrosoftEdge/MSEdgeExplainers/blob/main/Foldables/explainer.md) - Microsoft Edge web platform explainer for new APIs, to build web experiences on foldable and dual-screen devices. +* [Web Platform Primitives for Enlightened Experiences on Foldable Devices](https://github.com/MicrosoftEdge/MSEdgeExplainers/blob/main/Foldables/explainer.md) - Microsoft Edge web platform explainer for new APIs, to build web experiences on foldable and dual-screen devices. -* [How to build dual-screen experiences for the website and web apps](https://youtu.be/DXrZWsqXPVc) - Recording of Microsoft 365 Developer Day session. +* [How to build dual-screen experiences for the website and web apps](https://youtu.be/DXrZWsqXPVc) - Recording of Microsoft 365 Developer Day session. diff --git a/microsoft-edge/devtools/remote-debugging/webviews.md b/microsoft-edge/devtools/remote-debugging/webviews.md index e9b5e9acb1..b2e384a326 100644 --- a/microsoft-edge/devtools/remote-debugging/webviews.md +++ b/microsoft-edge/devtools/remote-debugging/webviews.md @@ -24,9 +24,9 @@ ms.date: 05/04/2021 # Remotely debug Android WebViews Debug Android WebViews in your native Android apps using Microsoft Edge Developer Tools, as follows: -* Turn on Android WebView debugging in your native Android app; debug Android WebViews in Microsoft Edge DevTools. -* To display the list of the Android WebViews with debugging turned on, go to `edge://inspect`. -* Debug Android WebViews in the same way you debug a webpage through [remote debugging](index.md). +* Turn on Android WebView debugging in your native Android app; debug Android WebViews in Microsoft Edge DevTools. +* To display the list of the Android WebViews with debugging turned on, go to `edge://inspect`. +* Debug Android WebViews in the same way you debug a webpage through [remote debugging](index.md). Details are below. @@ -83,9 +83,9 @@ The gray graphics listed with the Android WebView represent its size and positio If your Android WebViews aren't displayed on the `edge://inspect` page: -* Verify that Android WebView debugging is turned on for your app. +* Verify that Android WebView debugging is turned on for your app. -* On your device, open the app with the Android WebView you want to debug. Then, refresh `edge://inspect`. +* On your device, open the app with the Android WebView you want to debug. Then, refresh `edge://inspect`. diff --git a/microsoft-edge/devtools/remote-debugging/windows.md b/microsoft-edge/devtools/remote-debugging/windows.md index f321a2f30b..f86a2393d7 100644 --- a/microsoft-edge/devtools/remote-debugging/windows.md +++ b/microsoft-edge/devtools/remote-debugging/windows.md @@ -14,11 +14,11 @@ Remote debug live content on a Windows 10 or later device from your Windows or m This tutorial teaches you the following tasks: -* Set up your Windows device for remote debugging and connect to it from your development machine. +* Set up your Windows device for remote debugging and connect to it from your development machine. -* Inspect and debug live content on your Windows device from your development machine. +* Inspect and debug live content on your Windows device from your development machine. -* Screencast content from your Windows device onto a DevTools instance on your development machine. +* Screencast content from your Windows device onto a DevTools instance on your development machine. @@ -178,15 +178,15 @@ By default, the DevTools instance on the client have screencasting turned on, wh  You can interact with the screencast in multiple ways: -* Clicks are translated into taps, firing proper touch events on the device. -* Keystrokes on your computer are sent to the device. -* To simulate a pinch gesture, hold **Shift** while dragging. -* To scroll, use your trackpad or mouse wheel, or fling with your mouse pointer. +* Clicks are translated into taps, firing proper touch events on the device. +* Keystrokes on your computer are sent to the device. +* To simulate a pinch gesture, hold **Shift** while dragging. +* To scroll, use your trackpad or mouse wheel, or fling with your mouse pointer. Notes about screencasts: -* Screencasts only display page content. Transparent portions of the screencast represent device interfaces, such as the Microsoft Edge Address bar, the Windows 10 or later taskbar, and the Windows 10 or later keyboard. +* Screencasts only display page content. Transparent portions of the screencast represent device interfaces, such as the Microsoft Edge Address bar, the Windows 10 or later taskbar, and the Windows 10 or later keyboard. -* Screencasts negatively affect frame rates. Disable screencasting while measuring scrolls or animations to get a more accurate picture of the performance of your page. +* Screencasts negatively affect frame rates. Disable screencasting while measuring scrolls or animations to get a more accurate picture of the performance of your page. -* If your host device screen locks, the content of your screencast disappears. Unlock your host device screen to automatically resume the screencast. +* If your host device screen locks, the content of your screencast disappears. Unlock your host device screen to automatically resume the screencast. diff --git a/microsoft-edge/devtools/rendering-tools/index.md b/microsoft-edge/devtools/rendering-tools/index.md index 833fcc1669..e8318021de 100644 --- a/microsoft-edge/devtools/rendering-tools/index.md +++ b/microsoft-edge/devtools/rendering-tools/index.md @@ -31,13 +31,13 @@ Users expect interactive and smooth pages. Each stage in the pixel pipeline rep #### Summary -* Don't write JavaScript that forces the browser to recalculate layout. Separate read and write functions, and perform reads first. +* Don't write JavaScript that forces the browser to recalculate layout. Separate read and write functions, and perform reads first. -* Don't over-complicate your CSS. Use less CSS and keep your CSS selectors simple. +* Don't over-complicate your CSS. Use less CSS and keep your CSS selectors simple. -* Avoid layout as much as possible. Choose CSS that doesn't trigger layout at all. +* Avoid layout as much as possible. Choose CSS that doesn't trigger layout at all. -* Painting may take up more time than any other rendering activity. Watch out for paint bottlenecks. +* Painting may take up more time than any other rendering activity. Watch out for paint bottlenecks. diff --git a/microsoft-edge/devtools/rendering-tools/js-runtime.md b/microsoft-edge/devtools/rendering-tools/js-runtime.md index 3fe67d3a6a..cd053f4774 100644 --- a/microsoft-edge/devtools/rendering-tools/js-runtime.md +++ b/microsoft-edge/devtools/rendering-tools/js-runtime.md @@ -168,9 +168,9 @@ Hover on a function to display the name and timing data: | **Self size** | The size of the current invocation of the function, including only the statements in the function. | | **Total size** | The size of the current invocation of this function and any functions that it called. | | **URL** | The location of the function definition in the form of `base.js:261` where `base.js` is the name of the file where the function is defined and `261` is the line number of the definition. | - - - + + +  diff --git a/microsoft-edge/devtools/resources/index.md b/microsoft-edge/devtools/resources/index.md index dc36c32b5e..3aa69b3b9b 100644 --- a/microsoft-edge/devtools/resources/index.md +++ b/microsoft-edge/devtools/resources/index.md @@ -24,19 +24,19 @@ ms.date: 10/30/2023 # View the resource files that make up a webpage You can view the resources that make up a webpage from within several tools (or _panels_) in Microsoft Edge DevTools, including: -* **Network** tool -* **Sources** tool -* **Application** tool +* **Network** tool +* **Sources** tool +* **Application** tool Resources are the files that make up a webpage. Examples of resources include: -* CSS files -* JavaScript files -* HTML files -* Image files +* CSS files +* JavaScript files +* HTML files +* Image files See also: -* [Learn web development](https://developer.mozilla.org/docs/Learn) at Mozilla.org -* [Overview of DevTools](../../devtools/overview.md) +* [Learn web development](https://developer.mozilla.org/docs/Learn) at Mozilla.org +* [Overview of DevTools](../../devtools/overview.md) diff --git a/microsoft-edge/devtools/samples/index.md b/microsoft-edge/devtools/samples/index.md index bf49a4605a..9a8c0c1c66 100644 --- a/microsoft-edge/devtools/samples/index.md +++ b/microsoft-edge/devtools/samples/index.md @@ -11,9 +11,9 @@ ms.date: 07/17/2025 # Sample code for DevTools Use the [Demos](https://github.com/MicrosoftEdge/Demos#readme) repo to learn how to use Microsoft Edge to develop webpages and web apps. There are various ways to view, download, and modify these demo webpages, including: -* DevTools in Microsoft Edge. -* Visual Studio Code, with optional DevTools. -* Visual Studio, with optional DevTools. +* DevTools in Microsoft Edge. +* Visual Studio Code, with optional DevTools. +* Visual Studio, with optional DevTools. To view the source code for a rendered demo webpage in DevTools in Microsoft Edge: @@ -153,11 +153,11 @@ This is the source code repo and its directory which stores the files for this d * [MicrosoftEdge/Demos > devtools-js-get-started](https://github.com/MicrosoftEdge/Demos/tree/main/devtools-js-get-started) - Contains the files: - * `README.md` - Contains links to the rendered demo webpage and the in-depth tutorial article about using the demo webpage. + * `README.md` - Contains links to the rendered demo webpage and the in-depth tutorial article about using the demo webpage. - * `index.html` - The webpage with an input form that sends data to the JavaScript file, and that displays the result of the JavaScript. + * `index.html` - The webpage with an input form that sends data to the JavaScript file, and that displays the result of the JavaScript. - * `get-started.js` - The JavaScript file that's used by the form in the demo webpage. + * `get-started.js` - The JavaScript file that's used by the form in the demo webpage. @@ -442,9 +442,9 @@ In contrast, the desired GitHub.io URL pattern is: * `https://[org].github.io/[repo]/[path]` To fill in that GitHub.io URL pattern, in this example: -* [org] is `MicrosoftEdge`. -* [repo] is `Demos`. -* [path] is `demo-to-do`. +* [org] is `MicrosoftEdge`. +* [repo] is `Demos`. +* [path] is `demo-to-do`. Therefore, the resulting GitHub.io server URL for the rendered demo webpage is: * `https://MicrosoftEdge.github.io/Demos/demo-to-do/` diff --git a/microsoft-edge/devtools/search/search-tool.md b/microsoft-edge/devtools/search/search-tool.md index 79b668f78c..6930c2dc54 100644 --- a/microsoft-edge/devtools/search/search-tool.md +++ b/microsoft-edge/devtools/search/search-tool.md @@ -107,8 +107,8 @@ After doing a search, click a result line to open the corresponding file. The * A webpage can continue to request resources after it has finished loading, so the results displayed in the **Search** panel might become outdated after a while. To update the search results, do either of the following: -* Click the **Refresh** () button in the toolbar. -* Search again by typing a term in the search input field. +* Click the **Refresh** () button in the toolbar. +* Search again by typing a term in the search input field. diff --git a/microsoft-edge/devtools/sources/index.md b/microsoft-edge/devtools/sources/index.md index 80cd994b6b..6969752f53 100644 --- a/microsoft-edge/devtools/sources/index.md +++ b/microsoft-edge/devtools/sources/index.md @@ -148,10 +148,10 @@ To load a file into a new tab of the browser, or to display other actions, right ###### Icons in the Page tab The **Page** tab uses the following icons: -* The **window** icon, along with the label `top`, represents the main document frame, which is an [HTML frame](https://w3.org/TR/html401/present/frames.html):  -* The **cloud** icon represents an [origin](https://html.spec.whatwg.org/multipage/origin.html#origin):  -* The **folder** icon represents a directory:  -* The **page** icon represents a resource:  +* The **window** icon, along with the label `top`, represents the main document frame, which is an [HTML frame](https://w3.org/TR/html401/present/frames.html):  +* The **cloud** icon represents an [origin](https://html.spec.whatwg.org/multipage/origin.html#origin):  +* The **folder** icon represents a directory:  +* The **page** icon represents a resource:  @@ -268,8 +268,8 @@ document.head.appendChild(script); Instead, you can save this code in a **Snippet** and then easily run it whenever you need to. When you press **Ctrl+S** (Windows, Linux) or **Command+S** (macOS), DevTools saves the **Snippet** to your file system. There are multiple ways to run a Snippet: -* In the **Navigator** pane, select the **Snippets** tab, and then select the snippets file to open it. Then at the bottom of the Editor pane, click the **Run** () button. -* When DevTools has focus, press **Ctrl+P** (Windows, Linux) or **Command+P** (macOS) to open the [Command Menu](../command-menu/index.md), and then type **!**. +* In the **Navigator** pane, select the **Snippets** tab, and then select the snippets file to open it. Then at the bottom of the Editor pane, click the **Run** () button. +* When DevTools has focus, press **Ctrl+P** (Windows, Linux) or **Command+P** (macOS) to open the [Command Menu](../command-menu/index.md), and then type **!**. Snippets are similar to bookmarklets. @@ -282,8 +282,8 @@ See also: To open a file, in addition to using the **Navigator** pane within the **Sources** tool, you can use the **Command Menu** from anywhere within DevTools. -* From anywhere in DevTools, press **Ctrl+P** on Windows/Linux or **Command+P** on macOS. The **Command Menu** appears, and lists all the resources that are in the tabs of the **Navigator** pane of the **Sources** tool. -* Or, next to the tabs of the **Navigator** pane in the **Sources** tool, click the **More options** (**...**) button, and then select **Open File**. +* From anywhere in DevTools, press **Ctrl+P** on Windows/Linux or **Command+P** on macOS. The **Command Menu** appears, and lists all the resources that are in the tabs of the **Navigator** pane of the **Sources** tool. +* Or, next to the tabs of the **Navigator** pane in the **Sources** tool, click the **More options** (**...**) button, and then select **Open File**. To display and pick from a list of all .js files, type **.js**. @@ -355,8 +355,8 @@ See also: For JavaScript changes to take effect, press **Ctrl+S** (Windows, Linux) or **Command+S** (macOS). If you change a file, an asterisk appears next to the file name. -* To save changes, press **Ctrl+S** on Windows/Linux or **Command+S** on macOS. -* To undo a change, press **Ctrl+Z** on Windows/Linux or **Command+Z** on macOS. +* To save changes, press **Ctrl+S** on Windows/Linux or **Command+S** on macOS. +* To undo a change, press **Ctrl+Z** on Windows/Linux or **Command+Z** on macOS. By default, your edits are discarded when you refresh the webpage. For more information about how to save the changes in your local file system, see [Edit and save files in a workspace (Sources tool Workspace tab)](../workspaces/index.md). @@ -393,8 +393,8 @@ See also: When you define a Workspace, changes inside a JavaScript function body take effect. DevTools doesn't re-run a script, so the only JavaScript changes that take effect are changes that you make within functions. For example, in the following figure, we added the following code to the JavaScript that is returned by the server: -* We added the statement `console.log('A')` outside of any function. -* We added the statement `console.log('B')` inside an `onClick` function. +* We added the statement `console.log('A')` outside of any function. +* We added the statement `console.log('B')` inside an `onClick` function. We then saved the changes, entered numbers into the form, and then selected the form button to send the form. After submitting the form, `console.log('A')`, which is at global scope, doesn't run, but `console.log('B')`, inside an `onClick` function, does run, outputting `B` to the **Console**: @@ -478,8 +478,8 @@ See also: #### Editing an HTML file There are two ways to edit HTML in DevTools: -* In the **Elements** tool, you work with one HTML element at a time, through user interface controls. -* In the **Sources** tool, you use a text editor. +* In the **Elements** tool, you work with one HTML element at a time, through user interface controls. +* In the **Sources** tool, you use a text editor.  @@ -548,11 +548,11 @@ With the debugger, you step through the code, while watching any JavaScript expr  The debugger supports standard debugging actions, such as: -* Setting breakpoints, to pause code. -* Stepping through code. -* Viewing and editing properties and variables. -* Watching the values of JavaScript expressions. -* Viewing the call stack (the sequence of function calls so far). +* Setting breakpoints, to pause code. +* Stepping through code. +* Viewing and editing properties and variables. +* Watching the values of JavaScript expressions. +* Viewing the call stack (the sequence of function calls so far). The debugger in DevTools is designed to look, feel, and work like [the debugger in Visual Studio Code](https://code.visualstudio.com/docs/editor/debugging) and [the debugger in Visual Studio](/visualstudio/debugger/navigating-through-code-with-the-debugger). @@ -627,11 +627,11 @@ See also: These three approaches are equivalent: -* Temporarily adding the statements `console.log(sum)` and `console.log(typeof sum)` in the code, where `sum` is in-scope. +* Temporarily adding the statements `console.log(sum)` and `console.log(typeof sum)` in the code, where `sum` is in-scope. -* Issuing the statements `sum` and `console.log(typeof sum)` in the **Console** pane of the DevTools, when the debugger is paused where `sum` is in-scope. +* Issuing the statements `sum` and `console.log(typeof sum)` in the **Console** pane of the DevTools, when the debugger is paused where `sum` is in-scope. -* Setting the **Watch** expressions `sum` and `typeof sum` in the **Debugger** pane. +* Setting the **Watch** expressions `sum` and `typeof sum` in the **Debugger** pane. When the variable `sum` is in-scope, `sum` and its value are automatically shown in the **Scope** section of the **Debugger** pane, and are also overlaid in the Editor pane where `sum` is calculated. So you probably wouldn't need to define a Watch expression for `sum`. diff --git a/microsoft-edge/devtools/speed/get-started.md b/microsoft-edge/devtools/speed/get-started.md index 7c7f70d9e1..679e8d032b 100644 --- a/microsoft-edge/devtools/speed/get-started.md +++ b/microsoft-edge/devtools/speed/get-started.md @@ -82,9 +82,9 @@ Whenever you set out to improve the load performance of a site, always start wit The audit has two important functions: -* It creates a **baseline** for you to measure subsequent changes against. +* It creates a **baseline** for you to measure subsequent changes against. -* It gives you **actionable tips** on what changes improve performance the most. +* It gives you **actionable tips** on what changes improve performance the most. @@ -99,11 +99,11 @@ The baseline is a record of how the site performed before you made any performan 1. Select the **Performance** category, and clear all the other categories. For now, keep the other default options. The options are: - * **Mode**: To run tests during the load of the webpage, set this option to **Navigation (default)**. To run tests during a period of time, set the option to **Timespan**. To run tests on the webpage as it appears now, set the option to **Snapshot**. + * **Mode**: To run tests during the load of the webpage, set this option to **Navigation (default)**. To run tests during a period of time, set the option to **Timespan**. To run tests on the webpage as it appears now, set the option to **Snapshot**. - * **Device**: To simulate a mobile user agent string and a mobile viewport, set this option to **Mobile**. To test the webpage without any simulation, set this option to **Desktop**. + * **Device**: To simulate a mobile user agent string and a mobile viewport, set this option to **Mobile**. To test the webpage without any simulation, set this option to **Desktop**. - * **Categories**: this option allows you to run only a subset of the tests available in **Lighthouse**. + * **Categories**: this option allows you to run only a subset of the tests available in **Lighthouse**. 1. Click **Analyze page load**: @@ -156,8 +156,8 @@ The **Metrics** section provides quantitative measurements of the performance of Each metric provides insight into a different aspect of the performance. For example: -* **First Contentful Paint** indicates when content first appears on the screen. This is an important milestone in the user's perception of the page load. -* **Time To Interactive** marks the point at which the rendered page is ready to handle user interactions. +* **First Contentful Paint** indicates when content first appears on the screen. This is an important milestone in the user's perception of the page load. +* **Time To Interactive** marks the point at which the rendered page is ready to handle user interactions. Click **Expand view** to display a description for each metric. Then click **Learn More** to read documentation about it: @@ -282,13 +282,13 @@ Now, the images on the webpage only require transferring 360 KB of data, instead For a small app, doing a one-off resize like this might be good enough. But for a large app, consider these strategies for managing images: -* Automatically resize images during your build process. +* Automatically resize images during your build process. -* Create multiple sizes of each image during the build process and then use `srcset` in your code. At runtime, the browser takes care of choosing which size is best for the device. +* Create multiple sizes of each image during the build process and then use `srcset` in your code. At runtime, the browser takes care of choosing which size is best for the device. -* Use an image CDN that lets you dynamically resize an image when you request it. +* Use an image CDN that lets you dynamically resize an image when you request it. -* At least, optimize each image. This can often create huge savings. +* At least, optimize each image. This can often create huge savings. _Optimization_ means running an image through a program that reduces the size of the image file. @@ -451,7 +451,7 @@ See also: #### Reduce layout shift by setting explicit width and height on images -In your **Lighthouse** report, the **Diagnostics** section suggests defining explicit `width` and `height` for image elements. Click on **Image elements do not have explicit width and height** to display more information: +In your **Lighthouse** report, the **Diagnostics** section suggests defining explicit `width` and `height` for image elements. Click on **Image elements do not have explicit width and height** to display more information:  diff --git a/microsoft-edge/devtools/storage/indexeddb.md b/microsoft-edge/devtools/storage/indexeddb.md index 11107416df..436fb1d85b 100644 --- a/microsoft-edge/devtools/storage/indexeddb.md +++ b/microsoft-edge/devtools/storage/indexeddb.md @@ -67,9 +67,9 @@ To view and change [IndexedDB](https://developer.mozilla.org/docs/Web/API/Indexe IndexedDB values in the **Application** tool don't update in real-time. -* To refresh the data, view an object store and then click the **Refresh** () button. +* To refresh the data, view an object store and then click the **Refresh** () button. -* To refresh all data in an IndexedDB database, view a database and then click **Refresh database**: +* To refresh all data in an IndexedDB database, view a database and then click **Refresh database**:  diff --git a/microsoft-edge/devtools/webauthn/index.md b/microsoft-edge/devtools/webauthn/index.md index bb36a9618a..13099c9e6d 100644 --- a/microsoft-edge/devtools/webauthn/index.md +++ b/microsoft-edge/devtools/webauthn/index.md @@ -16,9 +16,9 @@ Instead of debugging Web Authentication in your website or app with physical aut By using the **WebAuthn** tool, you can do the following without relying on physical authenticators: -* Emulate authenticators. -* Customize attributes of authenticators. -* Inspect states of authenticators. +* Emulate authenticators. +* Customize attributes of authenticators. +* Inspect states of authenticators. You can emulate authenticators and debug the [Web Authentication API](https://w3c.github.io/webauthn) by using the **WebAuthn** tool. diff --git a/microsoft-edge/devtools/welcome/welcome-tool.md b/microsoft-edge/devtools/welcome/welcome-tool.md index 89ca8821c9..348c0914c8 100644 --- a/microsoft-edge/devtools/welcome/welcome-tool.md +++ b/microsoft-edge/devtools/welcome/welcome-tool.md @@ -12,10 +12,10 @@ ms.date: 02/15/2022 The **Welcome** tool opens when you first open DevTools. It displays: -* Links to developer docs. -* Latest features. -* Release notes. -* Option to contact the Microsoft Edge DevTools team. +* Links to developer docs. +* Latest features. +* Release notes. +* Option to contact the Microsoft Edge DevTools team. The **Welcome** tool opens automatically after each update to Microsoft Edge. diff --git a/microsoft-edge/devtools/whats-new/2019/12/devtools.md b/microsoft-edge/devtools/whats-new/2019/12/devtools.md index 612bc52ded..8fb555ad3b 100644 --- a/microsoft-edge/devtools/whats-new/2019/12/devtools.md +++ b/microsoft-edge/devtools/whats-new/2019/12/devtools.md @@ -262,9 +262,9 @@ You can now view the initiators and dependencies of a network request as a neste After [logging network activity in the Network panel](../../../network/index.md), select a resource and then go to the **Initiator** panel to view the **Request Initiator Chain**: -* The **inspected resource** is bold. In the screenshot above, `ai.2.min.js` is the inspected resource. -* The resources above the inspected resource are the **initiators**. In the screenshot above, `https://www.microsoftedgeinsider.com` is the initiator of `ai.2.min.js`. In other words, `https://www.microsoftedgeinsider.com` caused the network request for `ai.2.min.js`. (The screenshot shows an outdated URL. The latest URL is `https://www.microsoft.com/edge/download/insider`.) -* The resources below the inspected resource are the **dependencies**. In the screenshot above, `https://dc.services.visualstudio.com/v2/track` is a dependency of `ai.2.min.js`. In other words, `ai.2.min.js` caused the network request for `https://dc.services.visualstudio.com/v2/track`. +* The **inspected resource** is bold. In the screenshot above, `ai.2.min.js` is the inspected resource. +* The resources above the inspected resource are the **initiators**. In the screenshot above, `https://www.microsoftedgeinsider.com` is the initiator of `ai.2.min.js`. In other words, `https://www.microsoftedgeinsider.com` caused the network request for `ai.2.min.js`. (The screenshot shows an outdated URL. The latest URL is `https://www.microsoft.com/edge/download/insider`.) +* The resources below the inspected resource are the **dependencies**. In the screenshot above, `https://dc.services.visualstudio.com/v2/track` is a dependency of `ai.2.min.js`. In other words, `ai.2.min.js` caused the network request for `https://dc.services.visualstudio.com/v2/track`. Initiator and dependency information can also be accessed by holding **Shift** and then hovering over network resources. See [Display initiators and dependencies](../../../network/reference.md#display-initiators-and-dependencies) in _Network features reference_. diff --git a/microsoft-edge/devtools/whats-new/2020/01/devtools.md b/microsoft-edge/devtools/whats-new/2020/01/devtools.md index 06ef78cd41..afafb6411e 100644 --- a/microsoft-edge/devtools/whats-new/2020/01/devtools.md +++ b/microsoft-edge/devtools/whats-new/2020/01/devtools.md @@ -228,7 +228,7 @@ Click [Show Device Frame](../../../device-mode/index.md#show-device-frame) to sh Related features: -* Open the [Command Menu](../../../command-menu/index.md) and run the `Capture screenshot` command to take a screenshot of the viewport that includes the Moto G4 hardware (after enabling **Show Device Frame**). +* Open the [Command Menu](../../../command-menu/index.md) and run the `Capture screenshot` command to take a screenshot of the viewport that includes the Moto G4 hardware (after enabling **Show Device Frame**). * [Throttle the network and CPU](../../../device-mode/index.md#throttle-the-network-and-cpu) to more accurately simulate a mobile user's web browsing conditions. Chromium issue [#924693](https://crbug.com/924693) diff --git a/microsoft-edge/devtools/whats-new/2020/03/devtools.md b/microsoft-edge/devtools/whats-new/2020/03/devtools.md index 2e564c1a5e..61ccb65727 100644 --- a/microsoft-edge/devtools/whats-new/2020/03/devtools.md +++ b/microsoft-edge/devtools/whats-new/2020/03/devtools.md @@ -162,10 +162,10 @@ See also: To emulate locales, in the **Sensors** tool, select a location from the **Location** dropdown list. (To access the **Sensors** tool, [open the **Command Menu**](../../../command-menu/index.md) and type `Sensors`.) After you select a location, DevTools modifies the current default locale, which affects the following code: -* `Intl.*` APIs, for example: `new Intl.NumberFormat().resolvedOptions().locale` -* Other locale-aware JavaScript APIs such as `String.prototype.localeCompare` and `*.prototype.toLocaleString`, for example: `123_456..toLocaleString()` -* DOM APIs such as `navigator.language` and `navigator.languages` -* The [Accept-Language](https://developer.mozilla.org/docs/Web/HTTP/Headers/Accept-Language) HTTP request header +* `Intl.*` APIs, for example: `new Intl.NumberFormat().resolvedOptions().locale` +* Other locale-aware JavaScript APIs such as `String.prototype.localeCompare` and `*.prototype.toLocaleString`, for example: `123_456..toLocaleString()` +* DOM APIs such as `navigator.language` and `navigator.languages` +* The [Accept-Language](https://developer.mozilla.org/docs/Web/HTTP/Headers/Accept-Language) HTTP request header > [!NOTE] > Updates to `navigator.language` and `navigator.languages` aren't visible immediately, but only after the next navigation or page refresh. Changes to the `Accept-Language` HTTP header are only reflected for subsequent requests. @@ -208,9 +208,9 @@ Update: As of 2022, breakpoints are now indicated by a blue rectangle, instead o The **Sources** panel has new icons for breakpoints, conditional breakpoints, and logpoints: -* Breakpoints () are represented by red circles. -* Conditional Breakpoints () are represented by half-red half-white circles. -* Logpoints () are represented by red circles with Console icons. +* Breakpoints () are represented by red circles. +* Conditional Breakpoints () are represented by half-red half-white circles. +* Logpoints () are represented by red circles with Console icons. The motivation for the new icons was to make the UI more consistent with other GUI debugging tools (which usually color breakpoints red) and to make it easier to distinguish between the 3 features at a glance. diff --git a/microsoft-edge/devtools/whats-new/2020/08/devtools.md b/microsoft-edge/devtools/whats-new/2020/08/devtools.md index 10352c65d7..ffae15ce7a 100644 --- a/microsoft-edge/devtools/whats-new/2020/08/devtools.md +++ b/microsoft-edge/devtools/whats-new/2020/08/devtools.md @@ -55,14 +55,14 @@ To help enhance your website or app for the dual-screen and foldable devices, us * [Rendering the seam](/dual-screen/introduction#how-to-work-with-the-seam), which is the space between the two screens. -* Enabling experimental Web Platform APIs to access the new [CSS media screen-spanning feature](/dual-screen/web/css-media-spanning) and [JavaScript getWindowSegments API](/dual-screen/web/javascript-getwindowsegments). +* Enabling experimental Web Platform APIs to access the new [CSS media screen-spanning feature](/dual-screen/web/css-media-spanning) and [JavaScript getWindowSegments API](/dual-screen/web/javascript-getwindowsegments).  Update: This feature has been released and is no longer experimental. See also: -* [Emulate dual-screen and foldable devices in Microsoft Edge DevTools](../../../device-mode/dual-screen-and-foldables.md) +* [Emulate dual-screen and foldable devices in Microsoft Edge DevTools](../../../device-mode/dual-screen-and-foldables.md) Chromium issue: [#1054281](https://crbug.com/1054281) @@ -186,8 +186,8 @@ To open the new **Media** tool, select **Customize and control DevTools** (`...` Before the new **Media** tool in DevTools, the logging and debug information about video players was located under the **Recent Players** setting. To open the **Recent Players** setting, go to `edge://media-internals` and then select the **Players** tool. View live content and inspect potential issues more quickly, such as investigating: -* Why frames are dropped. -* Why JavaScript is interacting with the player in an unexpected way. +* Why frames are dropped. +* Why JavaScript is interacting with the player in an unexpected way. @@ -244,13 +244,13 @@ When **Disable local fonts** is selected, DevTools ignores the `local()` fonts a  This feature is useful if you use two different copies of the same font during development, such as: -* A local font for your design tools. -* A web font for your code. +* A local font for your design tools. +* A web font for your code. Use **Disable local fonts** to make it easier to: -* Debug and measure loading performance and optimization of web fonts. -* Verify accuracy of your CSS `@font-face` rules. -* Discover differences between local versions installed on your device and a web font. +* Debug and measure loading performance and optimization of web fonts. +* Verify accuracy of your CSS `@font-face` rules. +* Discover differences between local versions installed on your device and a web font. Chromium issue: [#384968](https://crbug.com/384968) @@ -482,8 +482,8 @@ See also: The following text boxes now have **Clear** buttons: -* The filter text boxes in the **Styles** pane and **Network** tool. -* The DOM search text box in the **Elements** tool. +* The filter text boxes in the **Styles** pane and **Network** tool. +* The DOM search text box in the **Elements** tool. Click the **Clear** button to remove any inputted text. diff --git a/microsoft-edge/devtools/whats-new/2020/10/devtools.md b/microsoft-edge/devtools/whats-new/2020/10/devtools.md index 3242b870fc..46e6973394 100644 --- a/microsoft-edge/devtools/whats-new/2020/10/devtools.md +++ b/microsoft-edge/devtools/whats-new/2020/10/devtools.md @@ -31,10 +31,10 @@ These are the latest features in the Stable release of Microsoft Edge DevTools. To meet your translation needs, the Microsoft Edge DevTools team is focused on improving translation quality. Starting in Microsoft Edge version 87, several strings and terms are locked and don't change, even when the rest of the DevTools are displayed in other languages. The list of affected strings and terms include the following: -* The strings in the **Lighthouse** tool. -* The term `service worker`. -* Some of the **Network** tool filters such as `URL`, `XHR`, `JS`, and `CSS`. -* The [$0](../../../console/utilities.md#recently-selected-element-or-javascript-object-0-4) Console Utilities API. +* The strings in the **Lighthouse** tool. +* The term `service worker`. +* Some of the **Network** tool filters such as `URL`, `XHR`, `JS`, and `CSS`. +* The [$0](../../../console/utilities.md#recently-selected-element-or-javascript-object-0-4) Console Utilities API. [$0](../../../console/utilities.md#recently-selected-element-or-javascript-object-0-4) is now available in the [Console](../../../console/index.md) for users on localized versions of the DevTools. Thank you to the global developer community for helping improve localization of the Microsoft Edge DevTools. Continue to [send feedback on localization quality](../../../contact.md) to improve support for DevTools in all locales. For real-time updates on this feature in the Chromium open-source project, see Issue [#1136655](https://crbug.com/1136655). @@ -72,8 +72,8 @@ The **Network Console** tool now has improved compatibility with the [Postman v2 The **Network Console** tool now supports the following actions: -* Save and export Collections and Environments. -* Edit and export sets of environment variables within the **Network Console** tool. +* Save and export Collections and Environments. +* Edit and export sets of environment variables within the **Network Console** tool. Entering a name for the new environment: @@ -96,13 +96,13 @@ For history, in the Chromium open-source project, see Issue [#1093687](https://c The Microsoft Edge DevTools now support the following features for inspecting, viewing, and debugging your CSS grids. -* Display a simplified grid overlay using the **Inspect** tool, or get more detailed information with persistent overlays. +* Display a simplified grid overlay using the **Inspect** tool, or get more detailed information with persistent overlays. -* To enable persistent grid overlays, click the grid icon next to a grid container element in the **Elements** tool, or click the grid in the **Layout** tool. +* To enable persistent grid overlays, click the grid icon next to a grid container element in the **Elements** tool, or click the grid in the **Layout** tool. -* You can enable persistent overlays for multiple grids. +* You can enable persistent overlays for multiple grids. -* The new **Layout** tool allows you to easily toggle grid overlays and configure the appearance and the content for each. +* The new **Layout** tool allows you to easily toggle grid overlays and configure the appearance and the content for each. The features are turned on by default. @@ -138,9 +138,9 @@ For history, in the Chromium open-source project, see Issue [#174309](https://cr The **Elements for Visual Studio Code** and **Network for Visual Studio Code** extensions are now merged into the new [Microsoft Edge Developer Tools for Visual Studio Code](https://marketplace.visualstudio.com/items?itemName=ms-edgedevtools.vscode-edge-devtools) extension. Use the Microsoft Edge DevTools for the following activities without leaving Microsoft Visual Studio Code. -* Debug the DOM -* Edit CSS -* Inspect network traffic +* Debug the DOM +* Edit CSS +* Inspect network traffic With the extension, launch Microsoft Edge, connect to an existing instance of the browser, or use a headless browser directly from your editor. To start contributing and filing issues with your feedback about this extension, see the [Microsoft Edge Developer Tools for Visual Studio Code](https://github.com/Microsoft/vscode-edge-devtools) repo on GitHub. @@ -166,9 +166,9 @@ The following sections announce additional features available in Microsoft Edge In earlier versions of Microsoft Edge, there was no native WebAuthn debugging support. You needed physical authenticators to test your web application with the [Web Authentication API](https://w3c.github.io/webauthn). With the new **WebAuthn** tool, you can do the following without the use of any physical authenticators: -* Emulate authenticators. -* Customize attributes of authenticators. -* Inspect states of authenticators. +* Emulate authenticators. +* Customize attributes of authenticators. +* Inspect states of authenticators. You can emulate authenticators and debug the [Web Authentication API](https://w3c.github.io/webauthn) with the new **WebAuthn** tool. To open the **WebAuthn** tool, click **the Customize and control DevTools** (`...`) icon > **More tools** > **WebAuthn**. For real-time updates on this feature in the Chromium open-source project, see Issue [#1034663](https://crbug.com/1034663). diff --git a/microsoft-edge/devtools/whats-new/2020/11/devtools.md b/microsoft-edge/devtools/whats-new/2020/11/devtools.md index fa9c300eb4..4a5b5ff030 100644 --- a/microsoft-edge/devtools/whats-new/2020/11/devtools.md +++ b/microsoft-edge/devtools/whats-new/2020/11/devtools.md @@ -61,9 +61,9 @@ You can now filter out third-party issues using a new checkbox. The filter func To help you see issues that are found by [webhint](https://webhint.io), the **Issues** tool now displays the following information: -* Improved code snippets. -* Links to other relevant panels. -* Links to documentation to help you fix problems in your website. +* Improved code snippets. +* Links to other relevant panels. +* Links to documentation to help you fix problems in your website.  @@ -160,10 +160,10 @@ See also: In the **Network** tool, you can debug network requests that are run by service workers. (You can also open network requests from within the **Application** tool, instead of the **Network** tool.) In the **Timing** pane of the **Network** tool, for each request, DevTools displays the following information: -* The start of a request and duration of the bootstrap. -* Changes to service worker registration. -* The runtime of a `fetch` event handler. -* The runtime of all `fetch` events for loading a client. +* The start of a request and duration of the bootstrap. +* Changes to service worker registration. +* The runtime of a `fetch` event handler. +* The runtime of all `fetch` events for loading a client.  @@ -196,8 +196,8 @@ See also: In the **Network** tool, copy the property value of a network request using the new **Copy value** option. The property value is copied as a decoded JSON value. In previous versions of Microsoft Edge, you had to copy a value using one of the following actions: -* Highlight the entire text and copy it. -* Store the value as global variable, as applicable, and copy it from the DevTools **Console**. +* Highlight the entire text and copy it. +* Store the value as global variable, as applicable, and copy it from the DevTools **Console**. To copy the property value to your clipboard, see [Copy formatted response JSON to the clipboard](../../../network/reference.md#copy-formatted-response-json-to-the-clipboard) in _Network features reference_. @@ -227,7 +227,7 @@ For example, the red highlight below shows a custom multi-press keyboard shortcu  -Update: This feature has been released and is no longer experimental. +Update: This feature has been released and is no longer experimental. See also: * [Edit the keyboard shortcut for a DevTools action](../../../customize/shortcuts.md#edit-the-keyboard-shortcut-for-a-devtools-action) in _Customize keyboard shortcuts_. @@ -409,8 +409,8 @@ See also: DevTools now consistently uses `kB` for displaying sizes of files and memory. Previously, DevTools mixed `kB` and `KiB`. -* `kB` or kilobyte (10^3 or 1000 bytes) -* `KiB` or kibibyte (2^10 or 1024 bytes) +* `kB` or kilobyte (10^3 or 1000 bytes) +* `KiB` or kibibyte (2^10 or 1024 bytes) For example, the **Network** tool previously used `kB` in the labels, but used `KiB` in calculations. Your feedback showed that this inconsistency caused confusion. diff --git a/microsoft-edge/devtools/whats-new/2021/01/devtools.md b/microsoft-edge/devtools/whats-new/2021/01/devtools.md index 34f8f968e1..883f9a4387 100644 --- a/microsoft-edge/devtools/whats-new/2021/01/devtools.md +++ b/microsoft-edge/devtools/whats-new/2021/01/devtools.md @@ -58,10 +58,10 @@ When you work with fonts in CSS, use the new visual Font Editor. You can define The **Font Editor** helps you to: -* Switch between units for different font properties. -* Switch between keywords for different font properties. -* Convert units. -* Generate accurate CSS code. +* Switch between units for different font properties. +* Switch between keywords for different font properties. +* Convert units. +* Generate accurate CSS code. To turn on this experiment, see [Settings](../../../customize/index.md#settings) > **Experiments** and select the checkbox next to **Enable new Font Editor tools within Styles pane**. @@ -220,12 +220,12 @@ See also: The [Microsoft Edge Developer Tools for Visual Studio Code](https://marketplace.visualstudio.com/items?itemName=ms-edgedevtools.vscode-edge-devtools) extension version 1.1.2 for Microsoft Visual Studio Code has the following changes since the previous release. Microsoft Visual Studio Code updates extensions automatically. To manually update to version 1.1.2, see [Update an extension manually](https://code.visualstudio.com/docs/editor/extension-gallery#_update-an-extension-manually). -* Added a **Close instance** button to each item on the target list ([#248](https://github.com/microsoft/vscode-edge-devtools/pull/248)) -* Bumped Microsoft Edge DevTools version from 84.0.522.63 to [85.0.564.40](../../2020/06/devtools.md) ([#235](https://github.com/microsoft/vscode-edge-devtools/pull/235)) -* Included "Debugger for Microsoft Edge" as a dependency ([#233](https://github.com/microsoft/vscode-edge-devtools/pull/233)). +* Added a **Close instance** button to each item on the target list ([#248](https://github.com/microsoft/vscode-edge-devtools/pull/248)) +* Bumped Microsoft Edge DevTools version from 84.0.522.63 to [85.0.564.40](../../2020/06/devtools.md) ([#235](https://github.com/microsoft/vscode-edge-devtools/pull/235)) +* Included "Debugger for Microsoft Edge" as a dependency ([#233](https://github.com/microsoft/vscode-edge-devtools/pull/233)). -* Implemented settings option to change extension themes ([#229](https://github.com/microsoft/vscode-edge-devtools/pull/229)) +* Implemented settings option to change extension themes ([#229](https://github.com/microsoft/vscode-edge-devtools/pull/229)) You can file issues and contribute to the extension on the [vscode-edge-devtools GitHub repo](https://github.com/microsoft/vscode-edge-devtools). @@ -499,9 +499,9 @@ The [Advanced Perceptual Contrast Algorithm (APCA)](https://w3c.github.io/silver APCA is a new way to compute contrast. It is based on modern research on color perception. Compared to AA/AAA guidelines, APCA is more context-dependent. The contrast is calculated based on the following spatial properties of the text, color, and context. -* Spatial properties of text that include font weight and size. -* Spatial properties of color that include perceived contrast between text and background. -* Spatial properties of context that include ambient light, surroundings, and intended purpose. +* Spatial properties of text that include font weight and size. +* Spatial properties of color that include perceived contrast between text and background. +* Spatial properties of context that include ambient light, surroundings, and intended purpose. To turn on this experiment, select **Settings** > **Experiments** and then select the checkbox next to **Enable new Advanced Perceptual Contrast Algorithm (APCA) replacing previous contrast ratio and AA/AAA guidelines**. To view the history of this feature in the Chromium open-source project, see Issue [1121900](https://crbug.com/1121900). diff --git a/microsoft-edge/devtools/whats-new/2021/02/devtools.md b/microsoft-edge/devtools/whats-new/2021/02/devtools.md index cd2e00a05c..9c5e35a3ef 100644 --- a/microsoft-edge/devtools/whats-new/2021/02/devtools.md +++ b/microsoft-edge/devtools/whats-new/2021/02/devtools.md @@ -48,9 +48,9 @@ To turn on the experiment, see [Turning an experiment on or off](../../../experi The DevTools Tooltips feature helps you learn about all the different tools and panes. Hover over each outlined region of DevTools to learn more about how to use the tool. To turn on Tooltips, do one of the following: -* Select **Customize and control DevTools** (`...`) > **Help** > **Toggle the DevTools Tooltips**. -* Press **Ctrl+Shift+H** (Windows, Linux) or **Command+Shift+H** (macOS). -* [Open the Command Menu](../../../command-menu/index.md#open-the-command-menu) and then type **tooltips**. +* Select **Customize and control DevTools** (`...`) > **Help** > **Toggle the DevTools Tooltips**. +* Press **Ctrl+Shift+H** (Windows, Linux) or **Command+Shift+H** (macOS). +* [Open the Command Menu](../../../command-menu/index.md#open-the-command-menu) and then type **tooltips**. Then hover over each outlined region of DevTools: @@ -60,9 +60,9 @@ To turn off Tooltips, press **Esc**. Update: This feature has been released and is no longer experimental. Note: As of May 2022, tooltips aren't supported from the **Activity Bar**. diff --git a/microsoft-edge/devtools/whats-new/2021/04/devtools.md b/microsoft-edge/devtools/whats-new/2021/04/devtools.md index 9cd28d96d2..a3d1662643 100644 --- a/microsoft-edge/devtools/whats-new/2021/04/devtools.md +++ b/microsoft-edge/devtools/whats-new/2021/04/devtools.md @@ -61,9 +61,9 @@ See also: The DevTools Tooltips feature helps you learn about all the different tools and panes. Hover over each outlined region of DevTools to learn more about how to use the tool. To turn on Tooltips, do any of the following: -* Select **Customize and control DevTools** (`...`) > **Help** > **Toggle the DevTools Tooltips**. -* Press **Ctrl+Shift+H** (Windows, Linux) or **Command+Shift+H** (macOS). -* [Open the Command Menu](../../../command-menu/index.md#open-the-command-menu) and then type **tooltips**. +* Select **Customize and control DevTools** (`...`) > **Help** > **Toggle the DevTools Tooltips**. +* Press **Ctrl+Shift+H** (Windows, Linux) or **Command+Shift+H** (macOS). +* [Open the Command Menu](../../../command-menu/index.md#open-the-command-menu) and then type **tooltips**. Then hover over each outlined region of DevTools: @@ -89,9 +89,9 @@ Note: As of May 2022, tooltips aren't supported from the **Activity Bar**. In Microsoft Edge version 91 or later, if you're a Progressive Web App or service worker developer, display the update lifecycle of your service workers as a timeline in the **Application** tool. This feature helps you understand the time your service worker spends in each of the following stages: -* **Install** -* **Wait** -* **Activate** +* **Install** +* **Wait** +* **Activate**  @@ -108,7 +108,7 @@ See also: -In [Microsoft Edge version 90](../02/devtools.md) or earlier, if the Web App Manifest of your PWA included a non-square icon, a warning was displayed in the **Errors and Warnings** section for each non-square icon. In Microsoft Edge version 91 or later, the **Manifest** section in the **Application** tool displays no warnings if you provide at least one square icon. If you don't provide any square icons, the following warning message appears: +In [Microsoft Edge version 90](../02/devtools.md) or earlier, if the Web App Manifest of your PWA included a non-square icon, a warning was displayed in the **Errors and Warnings** section for each non-square icon. In Microsoft Edge version 91 or later, the **Manifest** section in the **Application** tool displays no warnings if you provide at least one square icon. If you don't provide any square icons, the following warning message appears: ```console Most operating systems require square icons. Please include at least one square icon in the array. @@ -191,13 +191,13 @@ The [Microsoft Edge Tools for Visual Studio Code extension](https://marketplace. Version 1.1.7 includes the following bug fixes and improvements: -* Updated the reliability of target closure. +* Updated the reliability of target closure. -* Updated the side panel to automatically refreshes when you debug targets that are created or destroyed. +* Updated the side panel to automatically refreshes when you debug targets that are created or destroyed. -* Added a new right-click menu that gives you faster access to the extension settings and the latest Changelog. +* Added a new right-click menu that gives you faster access to the extension settings and the latest Changelog. -* Updated and simplified the release of extension documentation including the newest features. +* Updated and simplified the release of extension documentation including the newest features. To manually update to version 1.1.7, see [Update an extension manually](https://code.visualstudio.com/docs/editor/extension-gallery#_update-an-extension-manually). You can file issues and contribute to the extension on the [vscode-edge-devtools GitHub repo](https://github.com/microsoft/vscode-edge-devtools). @@ -269,11 +269,11 @@ See also: In the **Elements** tool, image previews have been enhanced to display more information, including the following details: -* Rendered size -* Rendered aspect ratio -* Intrinsic size -* Intrinsic aspect ratio -* File size +* Rendered size +* Rendered aspect ratio +* Intrinsic size +* Intrinsic aspect ratio +* File size  diff --git a/microsoft-edge/devtools/whats-new/2021/05/devtools.md b/microsoft-edge/devtools/whats-new/2021/05/devtools.md index 51f4b934a8..af44df550d 100644 --- a/microsoft-edge/devtools/whats-new/2021/05/devtools.md +++ b/microsoft-edge/devtools/whats-new/2021/05/devtools.md @@ -57,11 +57,11 @@ See also: Tabs for each tool have been reformatted to reduce the chance of accidentally closing a tool. On each tab in the main toolbar and in the toolbar of the **Drawer** (now **Quick View** panel), the following have been added: -* Spacing around the tab. -* Spacing around the close (`x`) button in the tab. -* A background color when hovering over the tab. -* A tooltip for the close (`x`) button of the tab. -* Higher contrast for the close (`x`) button of the tab. +* Spacing around the tab. +* Spacing around the close (`x`) button in the tab. +* A background color when hovering over the tab. +* A tooltip for the close (`x`) button of the tab. +* Higher contrast for the close (`x`) button of the tab. For example, when you are in the **Performance** tool and you hover over the **Network** tool's tab, these improvements help prevent accidentally closing the **Network** tool. @@ -151,11 +151,11 @@ You can file issues and contribute to the extension on the [vscode-edge-devtools Version 1.1.8 of the [Microsoft Edge Developer Tools for Visual Studio Code](https://marketplace.visualstudio.com/items?itemName=ms-edgedevtools.vscode-edge-devtools) extension now features a simpler way to start a new instance of Microsoft Edge, by presenting instructions, buttons, links, and a documentation page to guide you. -* When you select the **Microsoft Edge Tools** button in the **Activity Bar** of Visual Studio Code, the **Microsoft Edge Tools: Targets** panel now presents explanatory text, buttons, and links to guide you, instead of a blank panel. +* When you select the **Microsoft Edge Tools** button in the **Activity Bar** of Visual Studio Code, the **Microsoft Edge Tools: Targets** panel now presents explanatory text, buttons, and links to guide you, instead of a blank panel. -* When you open a new instance of Microsoft Edge from within Visual Studio Code, Microsoft Edge now shows a start page that explains how to use the Developer Tools extension, instead of a blank page. +* When you open a new instance of Microsoft Edge from within Visual Studio Code, Microsoft Edge now shows a start page that explains how to use the Developer Tools extension, instead of a blank page. -* The **Microsoft Edge Tools: Targets** panel now has a **Generate launch.json** button and instructions, to help launch your project for debugging in Microsoft Edge. +* The **Microsoft Edge Tools: Targets** panel now has a **Generate launch.json** button and instructions, to help launch your project for debugging in Microsoft Edge. See also: * [Microsoft Edge DevTools extension for Visual Studio Code](../../../../visual-studio-code/microsoft-edge-devtools-extension.md) @@ -191,8 +191,8 @@ The Console now supports redeclaration of `const` variables across separate REPL Refer to the example below. `const` redeclaration is supported across separate REPL scripts (refer to variable `a`). Note that the following scenarios aren't supported, by design: -* `const` redeclaration of page scripts isn't allowed in REPL scripts. -* `const` redeclaration within the same REPL script isn't allowed (refer to variable `b`). +* `const` redeclaration of page scripts isn't allowed in REPL scripts. +* `const` redeclaration within the same REPL script isn't allowed (refer to variable `b`).  diff --git a/microsoft-edge/devtools/whats-new/2021/07/devtools.md b/microsoft-edge/devtools/whats-new/2021/07/devtools.md index d3e7ba6871..034629f959 100644 --- a/microsoft-edge/devtools/whats-new/2021/07/devtools.md +++ b/microsoft-edge/devtools/whats-new/2021/07/devtools.md @@ -36,17 +36,17 @@ In addition to the existing light and dark themes, Microsoft Edge DevTools now s The supported Visual Studio Code themes are: Light themes: -* Solarized Light -* Quiet Light +* Solarized Light +* Quiet Light Dark themes: -* Abyss -* Kimbie Dark -* Monokai -* Monokai Dimmed -* Solarized Dark -* Red -* Tomorrow Night Blue +* Abyss +* Kimbie Dark +* Monokai +* Monokai Dimmed +* Solarized Dark +* Red +* Tomorrow Night Blue @@ -82,9 +82,9 @@ If you use JavaScript debugging in Visual Studio Code, you can now launch the ** This feature integrates DOM and CSS debugging with JavaScript debugging in Visual Studio Code. If you don't have the DevTools extension installed, when you select the **Inspect** button, Visual Studio Code prompts you to install the extension. Other new features are: -* The tools refresh automatically when you switch between different debugging targets. -* Several bug fixes. -* More detailed documentation of the extension. +* The tools refresh automatically when you switch between different debugging targets. +* Several bug fixes. +* More detailed documentation of the extension. For more details about improvements and fixes, check the [changelog file](https://github.com/microsoft/vscode-edge-devtools/blob/main/CHANGELOG.md) in the `vscode-edge-devtools` repo. diff --git a/microsoft-edge/devtools/whats-new/2021/09/devtools.md b/microsoft-edge/devtools/whats-new/2021/09/devtools.md index 4707de6a34..88822341c5 100644 --- a/microsoft-edge/devtools/whats-new/2021/09/devtools.md +++ b/microsoft-edge/devtools/whats-new/2021/09/devtools.md @@ -39,11 +39,11 @@ See [Search the web for a Console error message string](../../../console/index.m In the latest version of the Microsoft Edge DevTools extension for Visual Studio Code, we released the following updates or new features: -* Shares the same codebase that's used for the browser-based DevTools. -* Supports themes that ship with Visual Studio Code. -* Adds a **Helpful Links** section in the **Microsoft Edge Tools** sidebar, with buttons for **Documentation**, **Report a Bug**, and **Request a Feature**. -* Adds a **Close instance** (`X`) button in the **Microsoft Edge Tools** > **Targets** pane, to close the browser that was opened by the extension. -* Adds support for JavaScript Debugger connections to remote workspaces. +* Shares the same codebase that's used for the browser-based DevTools. +* Supports themes that ship with Visual Studio Code. +* Adds a **Helpful Links** section in the **Microsoft Edge Tools** sidebar, with buttons for **Documentation**, **Report a Bug**, and **Request a Feature**. +* Adds a **Close instance** (`X`) button in the **Microsoft Edge Tools** > **Targets** pane, to close the browser that was opened by the extension. +* Adds support for JavaScript Debugger connections to remote workspaces. The extension running inside Visual Studio Code, matching the dark theme of Visual Studio Code, and a new Helpful Links sidebar: diff --git a/microsoft-edge/devtools/whats-new/2021/10/devtools.md b/microsoft-edge/devtools/whats-new/2021/10/devtools.md index 1941ca8859..312b8157af 100644 --- a/microsoft-edge/devtools/whats-new/2021/10/devtools.md +++ b/microsoft-edge/devtools/whats-new/2021/10/devtools.md @@ -59,8 +59,8 @@ See also: Starting with [Microsoft Edge version 92](../05/devtools.md#user-agent-client-hints-for-devices-in-the-network-conditions-tab), you can specify User-Agent Client Hints. You can specify User-Agent Client Hints in either of two places: -* [When defining the user agent string in the Network conditions tool](../../../device-mode/override-user-agent.md). -* [When adding a custom device to emulate in Settings](../../../device-mode/index.md#add-a-custom-mobile-device). +* [When defining the user agent string in the Network conditions tool](../../../device-mode/override-user-agent.md). +* [When adding a custom device to emulate in Settings](../../../device-mode/index.md#add-a-custom-mobile-device). In Microsoft Edge prior to version 95, when adding a custom device to emulate from the **Devices** section of **Settings**, selecting the **User agent client hints** button with the keyboard caused the incorrect UI item to be activated. Instead of expanding the **User agent client hints** section for you to fill it in, it selected the **Add** button. The device you were starting to define was immediately added, using empty fields in the **User agent client hints** section. @@ -109,8 +109,8 @@ The following are some of the additional features that are available in Microsof DevTools improves the display of properties by: -* Always bolding and sorting own properties first, in the **Console**, in the **Sources** tool, and in the **Properties** tab in the **Elements** tool. (An _own property_ is a property that's defined directly on the object.) -* Flattening the properties display in the **Properties** pane. +* Always bolding and sorting own properties first, in the **Console**, in the **Sources** tool, and in the **Properties** tab in the **Elements** tool. (An _own property_ is a property that's defined directly on the object.) +* Flattening the properties display in the **Properties** pane. For example, the snippet below creates an [URL](https://developer.mozilla.org/docs/Web/API/URL) object `link` with two own properties: `user` and `access`, and then updates the value of an inherited property, `search`: diff --git a/microsoft-edge/devtools/whats-new/2021/11/devtools.md b/microsoft-edge/devtools/whats-new/2021/11/devtools.md index 14ba560b15..0baa79934e 100644 --- a/microsoft-edge/devtools/whats-new/2021/11/devtools.md +++ b/microsoft-edge/devtools/whats-new/2021/11/devtools.md @@ -38,7 +38,7 @@ This UI is still in development and may change in future versions of Microsoft E  See also: -* [DevTools: Focus Mode UI](https://github.com/MicrosoftEdge/DevTools/blob/main/explainers/FocusMode/explainer.md) in the `MSEdgeExplainers` repo. +* [DevTools: Focus Mode UI](https://github.com/MicrosoftEdge/DevTools/blob/main/explainers/FocusMode/explainer.md) in the `MSEdgeExplainers` repo. @@ -133,11 +133,11 @@ In previous versions of Microsoft Edge, turning on the **Open source files in Vi In Microsoft Edge version 96, the **Open source files in Visual Studio Code** experiment now integrates better with the **Sources** tool. -* If the **Sources** tool is open and you then turn on the **Open source files in Visual Studio Code** experiment, setting breakpoints or opening files now opens the **Sources** tool, rather than directing you to Visual Studio Code or to documentation to configure the experiment correctly. +* If the **Sources** tool is open and you then turn on the **Open source files in Visual Studio Code** experiment, setting breakpoints or opening files now opens the **Sources** tool, rather than directing you to Visual Studio Code or to documentation to configure the experiment correctly.  -* As with earlier versions of Microsoft Edge, if the **Sources** tool isn't open in DevTools and you then turn on the **Open source files in Visual Studio Code** experiment, setting breakpoints or opening files from tools other than the **Sources** tool opens the file in Visual Studio Code. +* As with earlier versions of Microsoft Edge, if the **Sources** tool isn't open in DevTools and you then turn on the **Open source files in Visual Studio Code** experiment, setting breakpoints or opening files from tools other than the **Sources** tool opens the file in Visual Studio Code. See also: * [Opening source files in Visual Studio Code](../../../sources/opening-sources-in-vscode.md) - how DevTools integrates with Visual Studio Code. diff --git a/microsoft-edge/devtools/whats-new/2022/01/devtools.md b/microsoft-edge/devtools/whats-new/2022/01/devtools.md index 41d0117be4..30415761b2 100644 --- a/microsoft-edge/devtools/whats-new/2022/01/devtools.md +++ b/microsoft-edge/devtools/whats-new/2022/01/devtools.md @@ -58,13 +58,13 @@ For general information about this extension, see [Microsoft Edge DevTools exten The current version of the Microsoft Edge DevTools extension for Visual Studio Code fixes several issues that were reported by the community: -* The list of emulated devices in the screencast is now the same as the list of emulated devices in the browser. +* The list of emulated devices in the screencast is now the same as the list of emulated devices in the browser. -* Device emulation now adds the correct user agent string, to trigger the correct display. +* Device emulation now adds the correct user agent string, to trigger the correct display. -* You now get a warning when you use a deprecated launch version of Microsoft Edge, indicating that you'd miss out on features. +* You now get a warning when you use a deprecated launch version of Microsoft Edge, indicating that you'd miss out on features. -* You can now provide arguments for the launched browser instance, in case you need to have a special setup: +* You can now provide arguments for the launched browser instance, in case you need to have a special setup:  diff --git a/microsoft-edge/devtools/whats-new/2022/03/devtools.md b/microsoft-edge/devtools/whats-new/2022/03/devtools.md index 5b96b27609..087a855eaf 100644 --- a/microsoft-edge/devtools/whats-new/2022/03/devtools.md +++ b/microsoft-edge/devtools/whats-new/2022/03/devtools.md @@ -36,9 +36,9 @@ To try this feature:  See also: -* [Map the processed code to your original source code, for debugging](../../../javascript/source-maps.md) -* [Securely debug original code by publishing source maps to the Azure Artifacts symbol server](../../../javascript/publish-source-maps-to-azure.md) -* [Securely debug original code by using Azure Artifacts symbol server source maps](../../../javascript/consume-source-maps-from-azure.md) +* [Map the processed code to your original source code, for debugging](../../../javascript/source-maps.md) +* [Securely debug original code by publishing source maps to the Azure Artifacts symbol server](../../../javascript/publish-source-maps-to-azure.md) +* [Securely debug original code by using Azure Artifacts symbol server source maps](../../../javascript/consume-source-maps-from-azure.md) diff --git a/microsoft-edge/devtools/whats-new/2022/04/devtools-101.md b/microsoft-edge/devtools/whats-new/2022/04/devtools-101.md index ba528b6289..5c6bacaff3 100644 --- a/microsoft-edge/devtools/whats-new/2022/04/devtools-101.md +++ b/microsoft-edge/devtools/whats-new/2022/04/devtools-101.md @@ -26,10 +26,10 @@ These are the latest features in the Stable release of Microsoft Edge DevTools. The Console is one of the most popular tools in DevTools. You can now access the Console tool in the Microsoft Edge Developer Tools extension for Visual Studio Code. This integrated DevTools Console allows you to see your log messages right next to your code. Using the Console, you can also: -* Try out some JavaScript statements. -* Access the window object. -* Call the methods of the `Console` object, as described in [Console object API Reference](../../../console/api.md). -* Use the Console utilities to access the DOM, as described in [Console tool utility functions and selectors](../../../console/utilities.md). +* Try out some JavaScript statements. +* Access the window object. +* Call the methods of the `Console` object, as described in [Console object API Reference](../../../console/api.md). +* Use the Console utilities to access the DOM, as described in [Console tool utility functions and selectors](../../../console/utilities.md). You can use the Console as the main tool, or use it together with the **Elements** and **Network** tools. diff --git a/microsoft-edge/devtools/whats-new/2022/05/devtools-102.md b/microsoft-edge/devtools/whats-new/2022/05/devtools-102.md index d8b66384f7..776ba36f38 100644 --- a/microsoft-edge/devtools/whats-new/2022/05/devtools-102.md +++ b/microsoft-edge/devtools/whats-new/2022/05/devtools-102.md @@ -109,8 +109,8 @@ Also, you can now press **Ctrl** to hide the Inspect tool's overlay while you mo For the history of this feature in the Chromium open-source project, see Issue [1316208](https://crbug.com/1316208). See also: -* [Persisting the Inspect tool's tooltip and grid color overlay](../../../css/inspect.md#persisting-the-inspect-tools-tooltip-and-grid-color-overlay) in _Analyze pages using the Inspect tool_. -* [Persisting the Inspect tool's tooltip and grid color overlay](../../../accessibility/navigation.md#persisting-the-inspect-tools-tooltip-and-grid-color-overlay) in _Navigate DevTools with assistive technology_. +* [Persisting the Inspect tool's tooltip and grid color overlay](../../../css/inspect.md#persisting-the-inspect-tools-tooltip-and-grid-color-overlay) in _Analyze pages using the Inspect tool_. +* [Persisting the Inspect tool's tooltip and grid color overlay](../../../accessibility/navigation.md#persisting-the-inspect-tools-tooltip-and-grid-color-overlay) in _Navigate DevTools with assistive technology_. @@ -120,9 +120,9 @@ See also: In previous versions of Microsoft Edge, the following items didn't render correctly in high-contrast mode: -* Dropdown menus in the **Issues** tool. -* Buttons in the **Detached Elements** tool. -* The **Activity Bar** in Focus Mode. +* Dropdown menus in the **Issues** tool. +* Buttons in the **Detached Elements** tool. +* The **Activity Bar** in Focus Mode. In Microsoft Edge 102, these issues have been fixed. diff --git a/microsoft-edge/devtools/whats-new/2022/06/devtools-103.md b/microsoft-edge/devtools/whats-new/2022/06/devtools-103.md index f6d60f00ba..56c6c7e96c 100644 --- a/microsoft-edge/devtools/whats-new/2022/06/devtools-103.md +++ b/microsoft-edge/devtools/whats-new/2022/06/devtools-103.md @@ -26,8 +26,8 @@ These are the latest features in the Stable release of Microsoft Edge DevTools. In Microsoft Edge 103, when taking a heap snapshot in the **Memory** tool, there are two new node types: -* **BigInt** - Used to represent and manipulate values that are too large to be represented by the **Number** node type. See [BigInt](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/BigInt). -* **Object shape** - Refers to the hidden classes and descriptor arrays that V8 (the JavaScript engine of Microsoft Edge) uses to understand and index the properties on objects. See [HiddenClasses and DescriptorArrays](https://v8.dev/blog/fast-properties#hiddenclasses-and-descriptorarrays) in _Fast properties in V8_. +* **BigInt** - Used to represent and manipulate values that are too large to be represented by the **Number** node type. See [BigInt](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/BigInt). +* **Object shape** - Refers to the hidden classes and descriptor arrays that V8 (the JavaScript engine of Microsoft Edge) uses to understand and index the properties on objects. See [HiddenClasses and DescriptorArrays](https://v8.dev/blog/fast-properties#hiddenclasses-and-descriptorarrays) in _Fast properties in V8_.  @@ -63,12 +63,12 @@ See also: In the new **Focus Mode** DevTools UI, various bugs affecting controls and keyboard shortcuts for DevTools have been resolved: -* Improved behavior of collapsible panes such as **Styles** in the **Elements** tool. -* Fixed some instances in which the name of an open tool wasn't visible. -* Improved reliability of **Quick View** controls. -* Improved behavior of opening DevTools by using keyboard shortcuts. -* Fixed an issue with navigating to a specific line of code in the **Sources** tool by using keyboard shortcuts. -* Restored the keyboard shortcut to open **Search** in the **Quick View** panel, which is **Ctrl+Shift+F** (Windows, Linux) or **Command+Option+F** (macOS): +* Improved behavior of collapsible panes such as **Styles** in the **Elements** tool. +* Fixed some instances in which the name of an open tool wasn't visible. +* Improved reliability of **Quick View** controls. +* Improved behavior of opening DevTools by using keyboard shortcuts. +* Fixed an issue with navigating to a specific line of code in the **Sources** tool by using keyboard shortcuts. +* Restored the keyboard shortcut to open **Search** in the **Quick View** panel, which is **Ctrl+Shift+F** (Windows, Linux) or **Command+Option+F** (macOS):  @@ -110,11 +110,11 @@ See also: In Microsoft Edge 103, the **Welcome** tool has a new, modern design with improved and expanded content. It's easier than ever to find documentation, videos, and information about new features and bug fixes. -* In the **Learn** section, use the links to quickly jump to documentation for common tasks in DevTools. +* In the **Learn** section, use the links to quickly jump to documentation for common tasks in DevTools. -* In the **What's New** section, find out about the latest changes, new features, and bug fixes. +* In the **What's New** section, find out about the latest changes, new features, and bug fixes. -* In both sections, learn about existing and new web development features through our new video series, [Videos about web development with Microsoft Edge](../../../../dev-videos/index.md). +* In both sections, learn about existing and new web development features through our new video series, [Videos about web development with Microsoft Edge](../../../../dev-videos/index.md).  diff --git a/microsoft-edge/devtools/whats-new/2022/08/devtools-104.md b/microsoft-edge/devtools/whats-new/2022/08/devtools-104.md index 36196e6c74..94aeee3d0e 100644 --- a/microsoft-edge/devtools/whats-new/2022/08/devtools-104.md +++ b/microsoft-edge/devtools/whats-new/2022/08/devtools-104.md @@ -82,8 +82,8 @@ See also: In previous versions of Microsoft Edge, when inspecting web socket traffic in the Network tool, the arrows representing whether a message was sent from the client or server were not rendering correctly. In Microsoft Edge 104, this issue has been fixed. Thank you for sending us your feedback about this issue! -* Green up-arrows () represent messages sent by the client. -* Red down-arrows () represent messages sent by the server. +* Green up-arrows () represent messages sent by the client. +* Red down-arrows () represent messages sent by the server.  diff --git a/microsoft-edge/devtools/whats-new/2022/09/devtools-106.md b/microsoft-edge/devtools/whats-new/2022/09/devtools-106.md index 8ac5524e05..d0c19e8574 100644 --- a/microsoft-edge/devtools/whats-new/2022/09/devtools-106.md +++ b/microsoft-edge/devtools/whats-new/2022/09/devtools-106.md @@ -40,8 +40,8 @@ To enable the Command Palette experiment: Note the keyboard shortcut, which is shown in the **Command Palette** section on the `edge://flags` page. + * In Microsoft Edge 106 and most releases of 107, the keyboard shortcut is **Ctrl+Shift+Spacebar**. + * In Microsoft Edge 108 and later, the shortcut is **Ctrl+Q**. --> 1. Click the **Restart** button, which appears in the lower right when you select **Enabled**. diff --git a/microsoft-edge/devtools/whats-new/2023/01/devtools-109.md b/microsoft-edge/devtools/whats-new/2023/01/devtools-109.md index 26ebe19da1..eab21b80cd 100644 --- a/microsoft-edge/devtools/whats-new/2023/01/devtools-109.md +++ b/microsoft-edge/devtools/whats-new/2023/01/devtools-109.md @@ -27,9 +27,9 @@ These are the latest features in the Stable release of Microsoft Edge DevTools. In Microsoft Edge 109, you can turn on new settings to export enhanced traces from the **Performance** and **Memory** tools. These enhanced traces include more information, such as: -* Messages logged to the Console. -* The JavaScript that was running on the page at the time of recording. -* Snapshots of the DOM. +* Messages logged to the Console. +* The JavaScript that was running on the page at the time of recording. +* Snapshots of the DOM. When saving performance profiles, heap snapshots, allocation timelines, or allocation sampling, you can now export a new `.devtools` file format. When you then import the `.devtools` file, a new instance of DevTools opens, with the state of your **Elements**, **Console**, and **Sources** tools preserved. These enhanced traces offer a powerful new way to collaborate and share the information in your DevTools. @@ -105,9 +105,9 @@ See also: In Microsoft Edge 109, the **Allocation sampling** profiling type in the **Memory** tool now has two new options: -* **Include objects discarded by major GC**. +* **Include objects discarded by major GC**. -* **Include objects discarded by minor GC**. +* **Include objects discarded by minor GC**. Without selecting these options, the **Memory** tool will continue to work as it did before, reporting allocations that are still alive at the end of the profiling session. In this mode, objects that are generated and garbage-collected (GC'd) and then disappear aren't tracked by allocation sampling. diff --git a/microsoft-edge/dualengine/intro.md b/microsoft-edge/dualengine/intro.md index 36196c6886..dcf51bcdbe 100644 --- a/microsoft-edge/dualengine/intro.md +++ b/microsoft-edge/dualengine/intro.md @@ -24,13 +24,13 @@ See also: The following programming environments are supported: -* Win32 C/C++ +* Win32 C/C++ DualEngine APIs can be used on the following versions of Windows: -* Windows 11 -* Windows 10 -* Windows Server 2022 +* Windows 11 +* Windows 10 +* Windows Server 2022 diff --git a/microsoft-edge/extensions/developer-guide/alternate-distribution-options.md b/microsoft-edge/extensions/developer-guide/alternate-distribution-options.md index 7ade686a37..a80d9b9cea 100644 --- a/microsoft-edge/extensions/developer-guide/alternate-distribution-options.md +++ b/microsoft-edge/extensions/developer-guide/alternate-distribution-options.md @@ -52,8 +52,8 @@ The following examples use `1.0` as the version, and `aaaaaaaabbbbbbbbccccccccdd To distribute your extension using the Windows registry: 1. Find or create the following key in the registry: - * 32-bit Windows: `HKEY_LOCAL_MACHINE\Software\Microsoft\Edge\Extensions` - * 64-bit Windows: `HKEY_LOCAL_MACHINE\Software\Wow6432Node\Microsoft\Edge\Extensions` + * 32-bit Windows: `HKEY_LOCAL_MACHINE\Software\Microsoft\Edge\Extensions` + * 64-bit Windows: `HKEY_LOCAL_MACHINE\Software\Wow6432Node\Microsoft\Edge\Extensions` 1. Create a new key, or folder, under **Extensions** with the same name as the ID of your extension. For example, create the key with the name `aaaaaaaabbbbbbbbccccccccdddddddd`. @@ -84,7 +84,7 @@ To distribute your extension by using a preferences JSON file: 1. Depending on your operating system, save the JSON file to one of the following folders: - * **macOS** + * **macOS** * User-specific: `~USERNAME/Library/Application Support/Microsoft Edge/External Extensions/` * For all users: `/Library/Application Support/Microsoft/Edge/External Extensions/` @@ -97,13 +97,13 @@ To distribute your extension by using a preferences JSON file: * Every directory in the path isn't `world` writable. * The path must be free of symbolic links. - * **Linux** + * **Linux** * User-specific: `~/.config/microsoft-edge/External Extensions/` * For all users: `/usr/share/microsoft-edge/extensions/` 1. Depending on your scenario, copy the appropriate code that follows, into your preferences JSON file. - * Applies to Linux only. If you install from a file, specify the location and version in `external_crx` and `external_version`: + * Applies to Linux only. If you install from a file, specify the location and version in `external_crx` and `external_version`: ```json { @@ -112,7 +112,7 @@ To distribute your extension by using a preferences JSON file: } ``` - * Applies to macOS and Linux. If you install from an `update_url`, specify the update URL in `external_update_url`. + * Applies to macOS and Linux. If you install from an `update_url`, specify the update URL in `external_update_url`. Copy the following code into your preferences JSON file when installing from local `.crx` files on Linux only: @@ -122,7 +122,7 @@ To distribute your extension by using a preferences JSON file: } ``` - * Copy the following code to your preferences JSON file when installing from [Microsoft Edge Add-ons](https://microsoftedge.microsoft.com) on macOS and Linux: + * Copy the following code to your preferences JSON file when installing from [Microsoft Edge Add-ons](https://microsoftedge.microsoft.com) on macOS and Linux: ```json { diff --git a/microsoft-edge/extensions/developer-guide/api-support.md b/microsoft-edge/extensions/developer-guide/api-support.md index b4227adfd0..fd3c6fcc7b 100644 --- a/microsoft-edge/extensions/developer-guide/api-support.md +++ b/microsoft-edge/extensions/developer-guide/api-support.md @@ -112,11 +112,11 @@ These Extensions APIs are not supported for Microsoft Edge. ## Additional considerations for supported APIs -* The user must be signed into Microsoft Edge using a Microsoft account (MSA) or Microsoft Entra ID account to use `chrome.identity.getProfileUserInfo`. If the user is signed into Microsoft Edge using an on-premises Microsoft Entra ID account, the API returns `null` for the email and ID values. +* The user must be signed into Microsoft Edge using a Microsoft account (MSA) or Microsoft Entra ID account to use `chrome.identity.getProfileUserInfo`. If the user is signed into Microsoft Edge using an on-premises Microsoft Entra ID account, the API returns `null` for the email and ID values. A Microsoft account (MSA) is an Outlook.com, Live.com, or Hotmail.com account. -* Microsoft Edge doesn't support extensions that use Chrome Web Store payments because it uses `identity.getAuthtoken` to request tokens for signed-in users. These tokens are sent to the REST-based licensing API. +* Microsoft Edge doesn't support extensions that use Chrome Web Store payments because it uses `identity.getAuthtoken` to request tokens for signed-in users. These tokens are sent to the REST-based licensing API. diff --git a/microsoft-edge/extensions/developer-guide/csp.md b/microsoft-edge/extensions/developer-guide/csp.md index eeb978ddfe..ba503fa17b 100644 --- a/microsoft-edge/extensions/developer-guide/csp.md +++ b/microsoft-edge/extensions/developer-guide/csp.md @@ -131,11 +131,11 @@ The first restriction wipes out a huge class of cross-site scripting attacks by But three things must change in order to make this work the way you expect it to: -* The `clickHandler` definition must be moved into an external JavaScript file (`popup.js` may be a good target). +* The `clickHandler` definition must be moved into an external JavaScript file (`popup.js` may be a good target). -* The inline event handler definitions must be rewritten in terms of `addEventListener` and extracted into `popup.js`. If you're currently starting your program using code like `
`, consider replacing it by hooking into the `DOMContentLoaded` event of the document, or the `load` event of the window, depending on your requirements. Use the former, since it generally triggers more quickly. +* The inline event handler definitions must be rewritten in terms of `addEventListener` and extracted into `popup.js`. If you're currently starting your program using code like ``, consider replacing it by hooking into the `DOMContentLoaded` event of the document, or the `load` event of the window, depending on your requirements. Use the former, since it generally triggers more quickly. -* The `setTimeout` call must be rewritten to avoid converting the string `"awesome(); totallyAwesome()"` into JavaScript for running. +* The `setTimeout` call must be rewritten to avoid converting the string `"awesome(); totallyAwesome()"` into JavaScript for running. Those changes could look something like the following: diff --git a/microsoft-edge/extensions/developer-guide/devtools-extension-images/architecture.png b/microsoft-edge/extensions/developer-guide/devtools-extension-images/architecture.png new file mode 100644 index 0000000000..4c18fa0bd1 Binary files /dev/null and b/microsoft-edge/extensions/developer-guide/devtools-extension-images/architecture.png differ diff --git a/microsoft-edge/extensions/developer-guide/devtools-extension-images/custom-tab-activity-bar.png b/microsoft-edge/extensions/developer-guide/devtools-extension-images/custom-tab-activity-bar.png new file mode 100644 index 0000000000..81b2a7b1d9 Binary files /dev/null and b/microsoft-edge/extensions/developer-guide/devtools-extension-images/custom-tab-activity-bar.png differ diff --git a/microsoft-edge/extensions/developer-guide/devtools-extension-images/devtools-extension-show-greeting.png b/microsoft-edge/extensions/developer-guide/devtools-extension-images/devtools-extension-show-greeting.png deleted file mode 100644 index 31faa3a563..0000000000 Binary files a/microsoft-edge/extensions/developer-guide/devtools-extension-images/devtools-extension-show-greeting.png and /dev/null differ diff --git a/microsoft-edge/extensions/developer-guide/devtools-extension-images/devtools-extension-show-position-in-console.png b/microsoft-edge/extensions/developer-guide/devtools-extension-images/devtools-extension-show-position-in-console.png deleted file mode 100644 index af74fde60d..0000000000 Binary files a/microsoft-edge/extensions/developer-guide/devtools-extension-images/devtools-extension-show-position-in-console.png and /dev/null differ diff --git a/microsoft-edge/extensions/developer-guide/devtools-extension-images/devtools-extension-show-position.png b/microsoft-edge/extensions/developer-guide/devtools-extension-images/devtools-extension-show-position.png deleted file mode 100644 index 826bc55a51..0000000000 Binary files a/microsoft-edge/extensions/developer-guide/devtools-extension-images/devtools-extension-show-position.png and /dev/null differ diff --git a/microsoft-edge/extensions/developer-guide/devtools-extension-images/devtools-extension-with-memory-info.png b/microsoft-edge/extensions/developer-guide/devtools-extension-images/devtools-extension-with-memory-info.png deleted file mode 100644 index 9fb4391a2a..0000000000 Binary files a/microsoft-edge/extensions/developer-guide/devtools-extension-images/devtools-extension-with-memory-info.png and /dev/null differ diff --git a/microsoft-edge/extensions/developer-guide/devtools-extension-images/devtools-extension-with-panel.png b/microsoft-edge/extensions/developer-guide/devtools-extension-images/devtools-extension-with-panel.png deleted file mode 100644 index 9c18e9be67..0000000000 Binary files a/microsoft-edge/extensions/developer-guide/devtools-extension-images/devtools-extension-with-panel.png and /dev/null differ diff --git a/microsoft-edge/extensions/developer-guide/devtools-extension-images/devtools-main-toolbar-tabs.png b/microsoft-edge/extensions/developer-guide/devtools-extension-images/devtools-main-toolbar-tabs.png deleted file mode 100644 index fa4ea0a873..0000000000 Binary files a/microsoft-edge/extensions/developer-guide/devtools-extension-images/devtools-main-toolbar-tabs.png and /dev/null differ diff --git a/microsoft-edge/extensions/developer-guide/devtools-extension-images/edge-extensions-page-reload-button.png b/microsoft-edge/extensions/developer-guide/devtools-extension-images/edge-extensions-page-reload-button.png deleted file mode 100644 index 659cfed9d2..0000000000 Binary files a/microsoft-edge/extensions/developer-guide/devtools-extension-images/edge-extensions-page-reload-button.png and /dev/null differ diff --git a/microsoft-edge/extensions/developer-guide/devtools-extension-images/edge-extensions-page.png b/microsoft-edge/extensions/developer-guide/devtools-extension-images/edge-extensions-page.png deleted file mode 100644 index 2249ad9b1c..0000000000 Binary files a/microsoft-edge/extensions/developer-guide/devtools-extension-images/edge-extensions-page.png and /dev/null differ diff --git a/microsoft-edge/extensions/developer-guide/devtools-extension-images/icon.png b/microsoft-edge/extensions/developer-guide/devtools-extension-images/icon.png new file mode 100644 index 0000000000..6635536171 Binary files /dev/null and b/microsoft-edge/extensions/developer-guide/devtools-extension-images/icon.png differ diff --git a/microsoft-edge/extensions/developer-guide/devtools-extension-images/overall_screenshot_mv3.png b/microsoft-edge/extensions/developer-guide/devtools-extension-images/overall_screenshot_mv3.png deleted file mode 100644 index bb0dd0a881..0000000000 Binary files a/microsoft-edge/extensions/developer-guide/devtools-extension-images/overall_screenshot_mv3.png and /dev/null differ diff --git a/microsoft-edge/extensions/developer-guide/devtools-extension-images/solution-sample-panel.png b/microsoft-edge/extensions/developer-guide/devtools-extension-images/solution-sample-panel.png deleted file mode 100644 index a7bef75d8f..0000000000 Binary files a/microsoft-edge/extensions/developer-guide/devtools-extension-images/solution-sample-panel.png and /dev/null differ diff --git a/microsoft-edge/extensions/developer-guide/devtools-extension-sample-images/alert.png b/microsoft-edge/extensions/developer-guide/devtools-extension-sample-images/alert.png new file mode 100644 index 0000000000..be823e49e9 Binary files /dev/null and b/microsoft-edge/extensions/developer-guide/devtools-extension-sample-images/alert.png differ diff --git a/microsoft-edge/extensions/developer-guide/devtools-extension-sample-images/console-icon.png b/microsoft-edge/extensions/developer-guide/devtools-extension-sample-images/console-icon.png new file mode 100644 index 0000000000..985f23d234 Binary files /dev/null and b/microsoft-edge/extensions/developer-guide/devtools-extension-sample-images/console-icon.png differ diff --git a/microsoft-edge/extensions/developer-guide/devtools-extension-sample-images/console-tool-coordinates.png b/microsoft-edge/extensions/developer-guide/devtools-extension-sample-images/console-tool-coordinates.png new file mode 100644 index 0000000000..cc181893b0 Binary files /dev/null and b/microsoft-edge/extensions/developer-guide/devtools-extension-sample-images/console-tool-coordinates.png differ diff --git a/microsoft-edge/extensions/developer-guide/devtools-extension-sample-images/custom-icon.png b/microsoft-edge/extensions/developer-guide/devtools-extension-sample-images/custom-icon.png new file mode 100644 index 0000000000..467fcbf8a7 Binary files /dev/null and b/microsoft-edge/extensions/developer-guide/devtools-extension-sample-images/custom-icon.png differ diff --git a/microsoft-edge/extensions/developer-guide/devtools-extension-sample-images/custom-tab-activity-bar.png b/microsoft-edge/extensions/developer-guide/devtools-extension-sample-images/custom-tab-activity-bar.png new file mode 100644 index 0000000000..81b2a7b1d9 Binary files /dev/null and b/microsoft-edge/extensions/developer-guide/devtools-extension-sample-images/custom-tab-activity-bar.png differ diff --git a/microsoft-edge/extensions/developer-guide/devtools-extension-sample-images/custom-tool-coordinates.png b/microsoft-edge/extensions/developer-guide/devtools-extension-sample-images/custom-tool-coordinates.png new file mode 100644 index 0000000000..b47d949307 Binary files /dev/null and b/microsoft-edge/extensions/developer-guide/devtools-extension-sample-images/custom-tool-coordinates.png differ diff --git a/microsoft-edge/extensions/developer-guide/devtools-extension-sample-images/custom-tool.png b/microsoft-edge/extensions/developer-guide/devtools-extension-sample-images/custom-tool.png new file mode 100644 index 0000000000..e47c01cc27 Binary files /dev/null and b/microsoft-edge/extensions/developer-guide/devtools-extension-sample-images/custom-tool.png differ diff --git a/microsoft-edge/extensions/developer-guide/devtools-extension-sample-images/edge-extensions-page.png b/microsoft-edge/extensions/developer-guide/devtools-extension-sample-images/edge-extensions-page.png new file mode 100644 index 0000000000..00fb8388f6 Binary files /dev/null and b/microsoft-edge/extensions/developer-guide/devtools-extension-sample-images/edge-extensions-page.png differ diff --git a/microsoft-edge/extensions/developer-guide/devtools-extension-sample-images/load-unpacked-icon.png b/microsoft-edge/extensions/developer-guide/devtools-extension-sample-images/load-unpacked-icon.png new file mode 100644 index 0000000000..f1e0abd661 Binary files /dev/null and b/microsoft-edge/extensions/developer-guide/devtools-extension-sample-images/load-unpacked-icon.png differ diff --git a/microsoft-edge/extensions/developer-guide/devtools-extension-sample-images/memory-updating.png b/microsoft-edge/extensions/developer-guide/devtools-extension-sample-images/memory-updating.png new file mode 100644 index 0000000000..4da1b21016 Binary files /dev/null and b/microsoft-edge/extensions/developer-guide/devtools-extension-sample-images/memory-updating.png differ diff --git a/microsoft-edge/extensions/developer-guide/devtools-extension-sample-images/modified-custom-tool.png b/microsoft-edge/extensions/developer-guide/devtools-extension-sample-images/modified-custom-tool.png new file mode 100644 index 0000000000..06c14f83b0 Binary files /dev/null and b/microsoft-edge/extensions/developer-guide/devtools-extension-sample-images/modified-custom-tool.png differ diff --git a/microsoft-edge/extensions/developer-guide/devtools-extension-sample-images/more-tools-icon.png b/microsoft-edge/extensions/developer-guide/devtools-extension-sample-images/more-tools-icon.png new file mode 100644 index 0000000000..dd58c0da2a Binary files /dev/null and b/microsoft-edge/extensions/developer-guide/devtools-extension-sample-images/more-tools-icon.png differ diff --git a/microsoft-edge/extensions/developer-guide/devtools-extension-sample-images/panel-html.png b/microsoft-edge/extensions/developer-guide/devtools-extension-sample-images/panel-html.png new file mode 100644 index 0000000000..162ba39121 Binary files /dev/null and b/microsoft-edge/extensions/developer-guide/devtools-extension-sample-images/panel-html.png differ diff --git a/microsoft-edge/extensions/developer-guide/devtools-extension-sample-images/reload-modified-sample.png b/microsoft-edge/extensions/developer-guide/devtools-extension-sample-images/reload-modified-sample.png new file mode 100644 index 0000000000..bef45430cd Binary files /dev/null and b/microsoft-edge/extensions/developer-guide/devtools-extension-sample-images/reload-modified-sample.png differ diff --git a/microsoft-edge/extensions/developer-guide/devtools-extension-sample-images/settings-and-more-icon.png b/microsoft-edge/extensions/developer-guide/devtools-extension-sample-images/settings-and-more-icon.png new file mode 100644 index 0000000000..69fd7b1251 Binary files /dev/null and b/microsoft-edge/extensions/developer-guide/devtools-extension-sample-images/settings-and-more-icon.png differ diff --git a/microsoft-edge/extensions/developer-guide/devtools-extension-sample-images/show-in-folder-icon.png b/microsoft-edge/extensions/developer-guide/devtools-extension-sample-images/show-in-folder-icon.png new file mode 100644 index 0000000000..6e80bf7214 Binary files /dev/null and b/microsoft-edge/extensions/developer-guide/devtools-extension-sample-images/show-in-folder-icon.png differ diff --git a/microsoft-edge/extensions/developer-guide/devtools-extension-sample.md b/microsoft-edge/extensions/developer-guide/devtools-extension-sample.md new file mode 100644 index 0000000000..45e6f3b7ef --- /dev/null +++ b/microsoft-edge/extensions/developer-guide/devtools-extension-sample.md @@ -0,0 +1,277 @@ +--- +title: "Sample: Custom DevTools tool" +description: Microsoft Edge extension that adds a Custom tool in DevTools. Sends messages between the inspected webpage and DevTools. +author: MSEdgeTeam +ms.author: msedgedevrel +ms.topic: article +ms.service: microsoft-edge +ms.subservice: extensions +ms.date: 05/06/2026 +--- +# Sample: Custom DevTools tool + + +The sample "Custom DevTools tool" is a Microsoft Edge extension that adds a **Custom** tool in Microsoft Edge DevTools, which has its own tab in the **Activity Bar**. + + + +## Introduction + +The Custom DevTools Tool adds a **Custom** tool tab and panel in DevTools within Microsoft Edge: + + + +The **Custom** tool displays memory information, and sends messages between the inspected webpage and the panel in DevTools. + +The **Custom** DevTools tool calls the DevTools API to display memory information. + +The webpage under inspection, and the **Custom** DevTools tool, send messages to each other. + +Use this article to download, install, and run the sample. To learn more about the code in this sample, see [Add a custom tool in Microsoft Edge DevTools](./devtools-extension.md). + + + +## Step 1: Download the sample + +If not done yet, download the "main" branch of the Demos repo, or clone (or fork and clone) the repo. Downloading the repo is simplest, and is described below. + +Download the "main" branch of the Demos repo, as follows: + +1. In Microsoft Edge, go to the [MicrosoftEdge / Demos](https://github.com/MicrosoftEdge/Demos) repo. + +1. Click the down arrow in the **Code** button, and then select **Download ZIP**. + +1. In Microsoft Edge, the **Downloads** dialog shows `Demos-main.zip`. "-main" is added, meaning a static snapshot of the "main" branch of the repo. + +1. Hover to the right of `Demos-main.zip`, and then click the **Show in folder**  button. + + File Explorer opens, displaying the **Downloads** folder. + +1. Right-click `Demos-main.zip`, and then select **Extract all**. + + The **Extract Compressed (Zipped) Folders** dialog opens. + +1. Click the **Extract** button. + + The **% complete** dialog opens, and then finishes. + +1. Move the `Demos-main` folder to a GitHub repos location, such as `C:\Users\localAccount\GitHub`. + + + +## Step 2: Install the extension to add the tool in DevTools + +1. In Microsoft Edge, open a new window or tab. + +1. Select **Settings and more** (), hover over **Extensions**, and then select **Manage extensions**. + + The **Extensions** tab and page opens (`edge://extensions`). + +1. Turn on the **Developer mode** toggle. + +1. Click  **Load unpacked**. + + The **Select the extension directory** dialog opens. + +1. Navigate to the `/Demos-main/devtools-extension` folder, such as `C:\Users\localAccount\GitHub\Demos-main\devtools-extension\`, and then click the **Select Folder** button. + + The **Custom DevTools Tool** card is displayed: + +  + + + +## Step 3: Select the Custom tool in DevTools + +1. In Microsoft Edge, go to a webpage, such as the [To Do app](https://microsoftedge.github.io/Demos/demo-to-do/), in a new window or tab. + + The **Custom** DevTools tool requires a webpage, not an empty tab. + +1. Right-click the webpage, and then select **Inspect**. + + DevTools opens. + +1. In the **Activity Bar** of DevTools, click the **Custom** () tool's tab. + + The **Custom** tool tab and panel are displayed: + +  + + If the **Custom** () tool's tab isn't visible, do any of the following: + + * Click the **More tools** () button, and then select  **Custom**. + + * Make DevTools wider, and then click the **Custom** () tool's tab. + + The custom DevTools page has several sections: + + * Memory display information. + + * A button to send a message from DevTools to the inspected webpage, to make the page display a JavaScript `alert` dialog. + + * A **Coordinates** display area, to send a message from the inspected webpage to the DevTools **Console** and **Custom** tools. + + + +## Step 4: View memory information by using an extension API call + +* In the **Custom** tool, next to **Available Memory Capacity**, observe the once-per-second updating of the value: + +  + + + +## Step 5: Send message from DevTools to inspected page + +1. In the **Custom** tool, click the **Say Hello** button. + + A JavaScript `alert` dialog opens, displaying the message: "Hello from the DevTools extension!" + +  + + DevTools sends a message to the inspected webpage, causing JavaScript to display an alert. + +1. Click the **OK** button. + + The dialog closes. + + + +## Step 6: Send message from inspected page to DevTools + +1. In the inspected webpage, click various spots. + + In the **Custom** tool, next to **Coordinates**, the coordinates are displayed and updated while you click around: + +  + +1. In DevTools, in the **Activity Bar**, select the **Console** () tool. + +1. In the inspected webpage, click various spots. + + The clicked coordinates are displayed in the **Console**: + +  + + + +## Step 7: Modify the Custom tool + +1. If not done already, install [Visual Studio Code](https://code.visualstudio.com). + +1. Open Visual Studio Code. + +1. Click the **File** menu, and then click **Open Folder**. + + The **Open Folder** dialog opens. + +1. Navigate to the `/Demos-main/devtools-extension/` folder, such as `C:\Users\localAccount\GitHub\Demos-main\devtools-extension\`, and then click the **Select Folder** button. + + In the **Explorer** pane, the `/devtools-extension/` folder is displayed. + +1. Click `panel.html`. + + `panel.html` is opened for editing: + +  + +1. Add "My" to the `