Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>Copy Without Comments(CS)New to Visual Studio Code? Get it now.
Copy Without Comments(CS)

Copy Without Comments(CS)

Luster

|
152 installs
| (1) | Free
Uncommented copying via custom comment symbols
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Copy Without Comments (Custom Comment Symbols) README

(中文說明在本文後面)

This is the README for the Visual Studio Code extension "Copy Without Comments (Custom Comment Symbols)". This extension allows you to copy code from the editor without including any comments. It handles both single-line and multi-line comments. The current version allows you to customize both single line comment symbols and multi-line comment symbols, enabling you to match the symbols with the programming language you are using.

Features

To use this extension:

  1. Select the code snippet that you want to copy in the editor.

There are two ways to use it

  1. Use the default shortcut keys
    • Windows OS: Ctrl + Alt + C
    • macOS: Ctrl + Cmd + C
  2. Or open the Command Palette (Ctrl+Shift+P), type “Copy Without Comments (Custom Comment Symbols)”, and hit Enter

The code, minus any comments, will be copied to the clipboard.

It's important to note that this extension only works when there is text selected in the editor. If no text is selected, the extension will not perform any action.

Requirements

This extension does not have any specific requirements or dependencies.

Extension Settings

This extension allows you to customize comment symbols for excluding comments when copying code. You can adjust the following settings according to your preferences:

  • Single Line Comment Symbol: Specify the symbol used for single-line comments in your code. (Default: "//")
  • Multi-line Comment Start Symbol: Specify the symbol used to start multi-line comments in your code. (Default: "/")*
  • Multi-line Comment End Symbol: Specify the symbol used to end multi-line comments in your code. (Default: "/")*

Commands and Keybindings

This extension provides the following commands, which you can access via the command panel (Ctrl+Shift+P):

  • Copy Without Comments (custom comment symbols): Allows you to copy text without including comments.

    • Default Keybinding: Ctrl+Alt+C (Mac: Cmd+Ctrl+C).
  • Open Copy Without Comments Settings: Opens the settings page for customizing comment symbols exclusion.

You can access these settings and commands by searching for "Copy Without Comments (custom comment symbols)" in the Visual Studio Code settings or by using the provided keybinding.

Release Notes

1.0.0


中文說明

這是 Visual Studio Code 的 "Copy Without Comments (Custom Comment Symbols)" 擴充套件的 README 文件,允許您在不包含任何註釋的情況下從編輯器中複製程式碼。目前的版本允許您自定義單行註釋符號和多行註釋符號,以便您可以修改符號以符合您正在使用的編程語言。

功能

要使用此擴充功能:

  1. 在編輯器中選擇要複製的程式碼片段。

使用方式有兩種:

  1. 使用預設快速鍵
    • Windows OS: Ctrl + Alt + C
    • macOS: Ctrl + Cmd + C
  2. 或者打開命令面板(Ctrl+Shift+P),輸入“Copy Without Comments (Custom Comment Symbols)”,然後按 Enter 不包含任何註釋的程式碼,將被複製到剪貼板。

請務必注意,此擴充功能僅在編輯器中選擇文字時才有效。 如果未選擇任何文本,則擴充功能將不會執行任何操作。

需求

此擴充套件沒有任何特定的需求或依賴。

擴充套件設定

此擴充套件允許您自定義註釋符號,以便在複製程式碼時排除註釋。您可以根據個人偏好調整以下設定:

  • Single Line Comment Symbol(單行註釋符號):指定您程式碼中用於單行註釋的符號。(預設值:"//")
  • Multi-line Comment Start Symbol(多行註釋起始符號):指定您程式碼中用於開始多行註釋的符號。(預設值:"/")*
  • Multi-line Comment End Symbol(多行註釋結束符號):指定您程式碼中用於結束多行註釋的符號。(預設值:"/")*

命令

此擴充功能提供以下命令,您可以透過命令面板 (Ctrl+Shift+P) 存取這些命令:

  • Copy Without Comments (custom comment symbols)(複製時排除註釋(自定義註釋符號)):允許您複製文本時排除註釋。

    • 預設快捷鍵:Ctrl+Alt+C(Mac:Cmd+Ctrl+C)。
  • Open Copy Without Comments Settings(開啟複製時排除註釋設定):打開設定頁面以自定義註釋符號的排除。

您可以在 Visual Studio Code 的設定中搜索「Copy Without Comments (custom comment symbols)」來訪問這些設定和命令,或者使用提供的快速鍵綁定。

版本資訊

1.0.0

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft