Skip to content

Commit d29c3c2

Browse files
author
suyoung.lee
committed
translate Remove Unused Imports and Sort Imports
1 parent 5c6b886 commit d29c3c2

File tree

1 file changed

+13
-13
lines changed

1 file changed

+13
-13
lines changed

docs/documentation/ko/release-notes/TypeScript 4.9.md

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -330,10 +330,10 @@ VS Code has plenty of [remote extensions](https://marketplace.visualstudio.com/s
330330

331331
You can [read up more on this change on GitHub](https://github.com/microsoft/TypeScript/pull/50366).
332332

333-
## "Remove Unused Imports" and "Sort Imports" Commands for Editors
333+
## "Remove Unused Imports" "Sort Imports" 편집기 명령어
334334

335-
Previously, TypeScript only supported two editor commands to manage imports.
336-
For our examples, take the following code:
335+
이전까지 Typescript 는 import 를 관리하기 위한 편집기 명령어로 두 가지만을 지원했습니다.
336+
예시를 위해 다음 코드를 참고하세요.
337337

338338
```ts
339339
import { Zebra, Moose, HoneyBadger } from "./zoo";
@@ -342,8 +342,8 @@ import { foo, bar } from "./helper";
342342
let x: Moose | HoneyBadger = foo();
343343
```
344344

345-
The first was called "Organize Imports" which would remove unused imports, and then sort the remaining ones.
346-
It would rewrite that file to look like this one:
345+
첫 번째는 사용되지 않는 import 를 제거하고 남은 import 를 정렬하는 "Organize Imports" 입니다.
346+
이것은 파일을 다음과 같이 재작성합니다.
347347

348348
```ts
349349
import { foo } from "./helper";
@@ -352,7 +352,7 @@ import { HoneyBadger, Moose } from "./zoo";
352352
let x: Moose | HoneyBadger = foo();
353353
```
354354

355-
In TypeScript 4.3, we introduced a command called "Sort Imports" which would *only* sort imports in the file, but not remove them - and would rewrite the file like this.
355+
Typescript 4.3 에서는, 파일 내 import를 *오직* 정렬만 하고 제거하지는 않는 "Sort Imports" 가 소개되었습니다. 이것은 파일을 다음과 같이 재작성합니다.
356356

357357
```ts
358358
import { bar, foo } from "./helper";
@@ -361,10 +361,10 @@ import { HoneyBadger, Moose, Zebra } from "./zoo";
361361
let x: Moose | HoneyBadger = foo();
362362
```
363363

364-
The caveat with "Sort Imports" was that in Visual Studio Code, this feature was only available as an on-save command - not as a manually triggerable command.
364+
"Sort Imports" 에 대한 주의 사항은, Visual Studio Code 에서 이 기능이 수동으로 트리거할 수 있는 명령이 아닌 on-save 명령으로만 사용할 수 있었다는 점입니다.
365365

366-
TypeScript 4.9 adds the other half, and now provides "Remove Unused Imports".
367-
TypeScript will now remove unused import names and statements, but will otherwise leave the relative ordering alone.
366+
Typescript 4.9 는 나머지 절반을 추가하여 이제 "Remove Unused Improts" 기능을 제공합니다.
367+
TypeScript는 이제 사용되지 않는 이름 import 및 구문 import를 제거하지만, 그 외 상대적인 순서는 그대로 유지합니다.
368368

369369
```ts
370370
import { Moose, HoneyBadger } from "./zoo";
@@ -373,11 +373,11 @@ import { foo } from "./helper";
373373
let x: Moose | HoneyBadger = foo();
374374
```
375375

376-
This feature is available to all editors that wish to use either command;
377-
but notably, Visual Studio Code (1.73 and later) will have support built in *and* will surface these commands via its Command Palette.
378-
Users who prefer to use the more granular "Remove Unused Imports" or "Sort Imports" commands should be able to reassign the "Organize Imports" key combination to them if desired.
376+
이 기능은 두 명령어를 사용하고자 하는 모든 편집기에서 사용 가능합니다.
377+
특히 Visual Studio Code (1.73 이상) 에선 이에 대한 빌트인 기능을 지원하며 *또한* Command Palette 를 통해 해당 명령어들을 확인할 수 있습니다.
378+
더 세분화된 "Remove Unused Imports" 또는 "Sort Imports" 사용을 선호하는 사용자는 원하는 경우 "Organize Imports" 키 조합을 재할당할 수 있습니다.
379379

380-
You can [view specifics of the feature here](https://github.com/microsoft/TypeScript/pull/50931).
380+
[여기서 이 기능의 세부 사항](https://github.com/microsoft/TypeScript/pull/50931)을 볼 수 있습니다.
381381

382382
## Go-to-Definition on `return` Keywords
383383

0 commit comments

Comments
 (0)