Skip to content

Commit ce53549

Browse files
codepo8mikehoffmsReezaali
authored
Adding quick fix documenation (#2156)
* Adding quick fix documenation * Writer/Editor pass * Merged lists * Intro to list * tech corrections * Adding new screenshots in light and dark * Update microsoft-edge/visual-studio-code/microsoft-edge-devtools-extension.md Co-authored-by: Michael Hoffman <[email protected]> * add -light to png * Add -light to png name locally * Removed unused pngs (#2170) * Remove unused pngs * Joined intro sentences Co-authored-by: Michael S. Hoffman <[email protected]> Co-authored-by: Reezaali <[email protected]>
1 parent ddb7cc6 commit ce53549

File tree

3 files changed

+27
-1
lines changed

3 files changed

+27
-1
lines changed
8.01 KB
Loading
26 KB
Loading

microsoft-edge/visual-studio-code/microsoft-edge-devtools-extension.md

Lines changed: 27 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ author: MSEdgeTeam
55
ms.author: msedgedevrel
66
ms.topic: conceptual
77
ms.prod: microsoft-edge
8-
ms.date: 07/07/2022
8+
ms.date: 09/07/2022
99
---
1010
# Microsoft Edge DevTools extension for Visual Studio Code
1111

@@ -74,6 +74,32 @@ Issues are evaluated live while you edit your code. As you type, you get feedba
7474
![A possible issue being explained on an output element](microsoft-edge-devtools-extension-images/live-issue-reporting.png)
7575

7676

77+
#### Automated Quick Fixes and issue filtering
78+
79+
<!--
80+
bold "Quick Fix" when focusing on the UI
81+
the UI label string is "Quick Fix", not "Quick Fixes"
82+
-->
83+
84+
The Microsoft Edge DevTools extension for Visual Studio Code includes a **Quick Fix** feature. By using Quick Fixes, you can customize the error reporting of the extension to meet the needs of the current project.
85+
86+
When you hover over an element that has an issue, you get a lightbulb icon indicating that there are Quick Fixes available:
87+
88+
![An anchor element with a protocol-specific href attribute highlighted as a problem, by a wavy underline and lightbulb icon above it](microsoft-edge-devtools-extension-images/light-bulb.png)
89+
90+
Clicking the lightbulb icon shows a list of options. For example, if you added a link that has a protocol-relative URL, you get the following **Quick Fix** list to choose from:
91+
92+
![The Quick Fix panel opened next to the anchor element with the error, offering several Quick Fix options](microsoft-edge-devtools-extension-images/quick-fix-options.png)
93+
94+
You can select whichever **Quick Fix** you want to use to resolve the issue or to stop reporting it as an issue:
95+
96+
* **Fix "no-protocol-relative-urls" issue** - Adds the missing URL prefix `https://` to the link.
97+
98+
* **Disable "no-protocol-relative-urls" hints in this project** - Creates a `.hintrc` configuration file in the project folder, and tells the extension never to report this issue again.
99+
100+
* **Edit .hintrc for this project** - Opens the `.hintrc` configuration file so you can edit it to customize the extension's error reporting.
101+
102+
77103
<!-- ====================================================================== -->
78104
## Modes for using Microsoft Edge DevTools in Visual Studio Code
79105

0 commit comments

Comments
 (0)