Windows系统下Anaconda Prompt无法高亮复制文本,该如何操作?
Got it, let's work through this—this is a super common quirk with Windows command-line tools like Anaconda Prompt. Here are the most reliable methods to copy text when you can't highlight normally:
Use the "Mark" feature via right-click menu
Right-click on the Anaconda Prompt title bar, hover over Edit and select Mark. Now you can drag your mouse to select the text you need. Once selected, either pressEnteron your keyboard or right-click again and choose Copy to save the text to your clipboard.Enable Quick Edit Mode (one-time setup)
This fixes the highlighting issue permanently. Right-click the title bar, select Properties, go to the Options tab, and check the box for Quick Edit Mode. Click OK to save changes. From now on, you can just drag your mouse to highlight text directly, then right-click to copy (no extra steps needed!).Redirect output to a text file
If you need to copy the entire output of a command, redirect it to a file instead. For example, if you want to save the list of your conda packages, run:conda list > conda_packages.txtThe file will be saved in your current working directory—just open it with Notepad or any text editor to copy the content.
Keyboard shortcut workaround
PressAlt + Spaceto open the window menu, then pressE(for Edit) followed byM(for Mark). Drag to select your text, then pressEnterto copy it to your clipboard. You can also try pressingCtrl + Cafter selecting with Mark, thoughEnteris more consistent for this method.
内容的提问来源于stack exchange,提问作者Igneous

