Skip to content

Commit c09ef1a

Browse files
committed
Remove refactor/extract from interactive playground
Fixes microsoft#51575 Don't highlight a feature in the interactive playground that does not work properly
1 parent 4f5ef27 commit c09ef1a

1 file changed

Lines changed: 0 additions & 16 deletions

File tree

src/vs/workbench/contrib/welcome/walkThrough/browser/editor/vs_code_editor_walkthrough.md

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ The core editor in VS Code is packed with features. This page highlights a numb
55
* [IntelliSense](#intellisense) - get code assistance and parameter suggestions for your code and external modules.
66
* [Line Actions](#line-actions) - quickly move lines around to re-order your code.
77
* [Rename Refactoring](#rename-refactoring) - quickly rename symbols across your code base.
8-
* [Refactoring via Extraction](#refactoring-via-extraction) - quickly extract common code into a separate function or constant.
98
* [Formatting](#formatting) - keep your code looking great with inbuilt document & selection formatting.
109
* [Code Folding](#code-folding) - focus on the most relevant parts of your code by folding other areas.
1110
* [Errors and Warnings](#errors-and-warnings) - see errors and warning as you type.
@@ -90,21 +89,6 @@ function Book(title, author) {
9089
> **JSDoc Tip:** VS Code's IntelliSense uses JSDoc comments to provide richer suggestions. The types and documentation from JSDoc comments show up when you hover over a reference to `Book` or in IntelliSense when you create a new instance of `Book`.
9190
9291

93-
### Refactoring via Extraction
94-
Sometimes you want to refactor already written code into a separate function or constant to reuse it later. Select the lines you want to refactor out and press kb(editor.action.quickFix) or click the little light bulb and choose one of the respective `Extract to...` options. Try it by selecting the code inside the `if`-clause on line 3 or any other common code you want to refactor out.
95-
96-
```js
97-
function findFirstEvenNumber(arr) {
98-
for (const el of arr) {
99-
if (typeof el === 'number' && el % 2 === 0) {
100-
return el;
101-
}
102-
}
103-
return null;
104-
}
105-
```
106-
107-
10892
### Formatting
10993
Keeping your code looking great is hard without a good formatter. Luckily it's easy to format content, either for the entire document with kb(editor.action.formatDocument) or for the current selection with kb(editor.action.formatSelection). Both of these options are also available through the right-click context menu.
11094

0 commit comments

Comments
 (0)