You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: microsoft-edge/devtools-guide-chromium/quick-source/quick-source-tool.md
+11-9Lines changed: 11 additions & 9 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -24,7 +24,7 @@ The main place to view source files in the DevTools is within the **Sources** to
24
24
25
25
To display the **Quick source** tool in **Quick View** at the bottom of DevTools, a tool other than the **Sources** tool must be open in the **Activity Bar** at the top of DevTools.
26
26
27
-
The **Quick source** tool provides an alternative display of the files that are open in the **Sources** tool. The **Quick source** tool has a subset of features. For full features, temporarily switch to the **Sources** tool.
27
+
The **Quick source** tool provides an alternative display of the files that are open in the **Sources** tool. The **Quick source** tool has a subset of features. For full features, use the **Sources** tool.
28
28
29
29
If you open or close a file in one tool, the file is opened or closed in the other tool. In both tools, there's a tab for each open file.
30
30
@@ -44,7 +44,7 @@ To view source files while using a tool than the **Sources** tool in the **Activ
44
44
45
45
1. In the **Activity Bar** at the top of DevTools, select the **Sources** () tool.
46
46
47
-
1. In the **Sources** tool, in the **Page** tab, select one or more files, such as `to-do.js`.
47
+
1. In the **Sources**() tool, in the **Page** tab, select one or more files, such as `to-do.js`.
48
48
49
49
The tabs for the selected files are opened in the **Sources** tool:
50
50
@@ -74,7 +74,9 @@ By selecting a local folder as a **Workspace** in the **Sources** tool, you can
74
74
To edit source files in the **Quick source** tool:
75
75
76
76
1. Have access to your source files locally, such as a cloned repo. See [Have local source files, such as a cloned repo](#have-local-source-files-such-as-a-cloned-repo), below.
77
-
1. In the **Workspace** tab in the **Sources** tool, add a local folder of source files. See [Select a local folder of source files as the Workspace](#select-a-local-folder-of-source-files-as-the-workspace), below.
77
+
78
+
1. In the **Workspace** tab in the **Sources** () tool, add a local folder of source files. See [Select a local folder of source files as the Workspace](#select-a-local-folder-of-source-files-as-the-workspace), below.
79
+
78
80
1. In the **Activity Bar**, select a tool other than the **Sources** tool, such as the **Elements** tool. Then in the **Quick View** panel at the bottom of DevTools, open the **Quick source** tool. See [Open the Quick source tool](#open-the-quick-source-tool), below.
79
81
80
82
These steps are detailed below.
@@ -116,7 +118,7 @@ For example, if not done already, clone the **MicrosoftEdge / Demos** repo to yo
116
118
```
117
119
118
120
For details about cloning a repo, see:
119
-
*[Clone the Edge Demos repo to your drive](../sample-code/sample-code.md#clone-the-edge-demos-repo-to-your-drive) in _Sample code for DevTools_.<!-- todo: show git bash, not only VS Code's Source Control pane -->
121
+
*[Clone the Edge Demos repo to your drive](../sample-code/sample-code.md#clone-the-edge-demos-repo-to-your-drive) in _Sample code for DevTools_.
120
122
*[Clone the WebView2Samples repo](../../webview2/how-to/machine-setup.md#clone-the-webview2samples-repo) in _Set up your Dev environment for WebView2_. Shows a different sample repo, but shows steps for several tools.
121
123
*[Cloning a repository](https://docs.github.com/en/repositories/creating-and-managing-repositories/cloning-a-repository) - GitHub docs.
122
124
@@ -197,7 +199,7 @@ Continue with the next section.
197
199
198
200

199
201
200
-
1. In the **Activity Bar** at the top of DevTools, select a tool other than the **Sources** tool, such as the **Elements** tool.
202
+
1. In the **Activity Bar** at the top of DevTools, select a tool other than the **Sources**() tool, such as the **Elements** () tool.
201
203
202
204
The **Quick source** tool expands in **Quick View** at the bottom of DevTools, and has a tab for each open file:
203
205
@@ -213,7 +215,7 @@ Continue with the next section.
213
215
214
216
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.
215
217
216
-
1. Continuing from above, in the **Activity Bar**, select a tool other than the **Sources** tool, such as the **Elements** tool.
218
+
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.
217
219
218
220
1. If the **Quick View** toolbar isn't shown at the bottom of DevTools, press **Esc**.
219
221
@@ -253,8 +255,8 @@ Now, when you edit the folder's files in DevTools, the edits are not only made t
253
255
254
256
See also:
255
257
*[Add a local folder to the workspace, to use DevTools to edit files and save changes to disk](../sources/index.md#add-a-local-folder-to-the-workspace-to-use-devtools-to-edit-files-and-save-changes-to-disk) in _Sources tool overview_.
256
-
*[Edit and save files in a workspace](../workspaces/index.md)
257
-
*[Step 4: Save a JavaScript change to disk](../workspaces/index.md#step-4-save-a-javascript-change-to-disk) in _Edit and save files in a workspace_
258
+
*[Edit and save files in a workspace (Sources tool Workspace tab)](../workspaces/index.md)
259
+
*[Step 4: Save a JavaScript change to disk](../workspaces/index.md#step-4-save-a-javascript-change-to-disk) in _Edit and save files in a workspace (Sources tool Workspace tab)_
@@ -298,7 +300,7 @@ The **Quick source** tool has a streamlined UI. Use these keyboard shortcuts.
298
300
299
301
***Ctrl+S** - Save. If there's no longer a green "mapped" dot on the HTML, JS, or CSS file name, long-click or right-click the **Refresh** button in Microsoft Edge, and then select **Hard refresh** (**Ctrl+Shift+R**).
300
302
301
-
***Ctrl+P** - Open a file by using the **Command Menu**. Same as going to the **Sources** tool and then clicking a file in the **Workspace** tab.
303
+
***Ctrl+P** - Open a file by using the **Command Menu**. This is the same as going to the **Sources** tool and then clicking a file in the **Workspace** tab.
Copy file name to clipboardExpand all lines: microsoft-edge/devtools-guide-chromium/sample-code/sample-code.md
+5-3Lines changed: 5 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -61,7 +61,7 @@ last sync'd April 16, 2024
61
61
| Inspect Network Activity | Used for [Inspect network activity](../network/index.md). |[/network-tutorial/](https://github.com/MicrosoftEdge/Demos/tree/main/network-tutorial)|[Inspect Network Activity Demo](https://microsoftedge.github.io/Demos/network-tutorial/)|
62
62
| Photo gallery | Used for [The truth about CSS selector performance](https://blogs.windows.com/msedgedev/2023/01/17/the-truth-about-css-selector-performance/). |[/photo-gallery/](https://github.com/MicrosoftEdge/Demos/tree/main/photo-gallery)|[Photo Gallery](https://microsoftedge.github.io/Demos/photo-gallery/)|
63
63
| Slow Calendar | Simple calendar demo app to test various DevTools features such as the **Performance** tool and source map support. |[/slow-calendar/](https://github.com/MicrosoftEdge/Demos/tree/main/slow-calendar)|[Slow Calendar](https://microsoftedge.github.io/Demos/slow-calendar/public)|
64
-
| Workspaces |Use for [Edit and save files in a workspace](../workspaces/index.md), in the **Sources** tool. |[/workspaces/](https://github.com/MicrosoftEdge/Demos/tree/main/workspaces)|[DevTools Workspaces Demo](https://microsoftedge.github.io/Demos/workspaces/)|
64
+
| Workspaces |Used for [Edit and save files in a workspace (Sources tool Workspace tab)](../workspaces/index.md), in the **Sources** tool. |[/workspaces/](https://github.com/MicrosoftEdge/Demos/tree/main/workspaces)|[DevTools Workspaces Demo](https://microsoftedge.github.io/Demos/workspaces/)|
65
65
66
66
A few of these samples are shown below.
67
67
@@ -302,6 +302,7 @@ Starting the server from within a specific demo directory:
302
302
303
303
```
304
304
$ cd "C:\Users\localAccount\GitHub\Demos\demo-to-do"
305
+
$ cd ~/GitHub/Demos/demo-to-do # alt syntax
305
306
$ npx http-server
306
307
```
307
308
@@ -321,6 +322,7 @@ Starting the server from within the entire `\Demos\` directory:
321
322
322
323
```
323
324
$ cd "C:\Users\localAccount\GitHub\Demos"
325
+
$ cd ~/GitHub/Demos # alt syntax
324
326
$ npx http-server
325
327
```
326
328
@@ -351,7 +353,7 @@ To edit files in the **Sources** tool, before doing the steps in this section, y
351
353
1. Select the **Sources** tool, and then select the **Page** tab or the **Workspace** tab.
352
354
353
355
See also:
354
-
*[Edit and save files in a workspace](../workspaces/index.md) - to open a local folder in the **Sources** tool of DevTools in the browser.
356
+
*[Edit and save files in a workspace (Sources tool Workspace tab)](../workspaces/index.md) - to open a local folder in the **Sources** tool of DevTools in the browser.
355
357
356
358
357
359
<!-- ------------------------------ -->
@@ -447,7 +449,7 @@ When you run a localhost server and start it within a cloned repo folder, such a
447
449
## See also
448
450
449
451
Opening and editing files:
450
-
*[Edit and save files in a workspace](../workspaces/index.md) - to open a local folder in the **Sources** tool of DevTools in the browser.
452
+
*[Edit and save files in a workspace (Sources tool Workspace tab)](../workspaces/index.md) - Use DevTools as an in-browser Integrated Development Environment (IDE).
451
453
*[Add a local folder to the workspace, to use DevTools to edit files and save changes to disk](../sources/index.md#add-a-local-folder-to-the-workspace-to-use-devtools-to-edit-files-and-save-changes-to-disk) in _Sources tool overview_.
452
454
*[Approaches compared](../../visual-studio-code/microsoft-edge-devtools-extension.md#approaches-compared) in _Microsoft Edge DevTools extension for Visual Studio Code_. Summarizes and compares several options for editing webpage files.
453
455
*[Microsoft Edge IDE integration](../../visual-studio-code/ide-integration.md) - Webpage app development using Visual Studio Code or Visual Studio, including Microsoft Edge DevTools.
Copy file name to clipboardExpand all lines: microsoft-edge/devtools-guide-chromium/sources/index.md
+3-3Lines changed: 3 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -200,7 +200,7 @@ In contrast, when you use a Workspace, changes that you make to your front-end c
200
200
Workspaces work well when the JavaScript code that's returned by the server is the same as your local JavaScript source code. Workspaces don't work as well when your workflow involves transformations on your source code, such as minification or [TypeScript](https://www.typescriptlang.org) compilation.
201
201
202
202
See also:
203
-
*[Edit and save files in a workspace](../workspaces/index.md)
203
+
*[Edit and save files in a workspace (Sources tool Workspace tab)](../workspaces/index.md)
204
204
*[Open a demo folder from the Workspace tab in the Sources tool](../../devtools-guide-chromium/sample-code/sample-code.md#open-a-demo-folder-from-the-workspace-tab-in-the-sources-tool)
205
205
206
206
@@ -355,7 +355,7 @@ If you change a file, an asterisk appears next to the file name.
355
355
* To save changes, press **Ctrl+S** on Windows/Linux or **Command+S** on macOS.
356
356
* To undo a change, press **Ctrl+Z** on Windows/Linux or **Command+Z** on macOS.
357
357
358
-
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](../workspaces/index.md).
358
+
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).
359
359
360
360
361
361
###### Find and Replace
@@ -451,7 +451,7 @@ See also:
451
451
<!-- ---------- -->
452
452
###### The Page tab or Workspace tab in the Sources tool
453
453
454
-
The **Page** or **Workspace** tab in the **Sources** tool supports directly editing a CSS file. For example, if you edit the CSS file from the tutorial [Edit and save files in a workspace](../workspaces/index.md) to match the style rule below, the `H1` element in the upper left of the rendered webpage changes to green:
454
+
The **Page** or **Workspace** tab in the **Sources** tool supports directly editing a CSS file. For example, if you edit the CSS file from the tutorial [Edit and save files in a workspace (Sources tool Workspace tab)](../workspaces/index.md) to match the style rule below, the `H1` element in the upper left of the rendered webpage changes to green:
0 commit comments