如何在Visual Studio 2015中可靠地复制/粘贴文本 [英] How do I reliabily copy/paste text in Visual Studio 2015
问题描述
我正在尝试将此文本复制/粘贴到Visual Studio中的.txt文件中.当我这样做时,所有换行符都消失了,而只是一行超长文本.
I'm trying to copy/paste this text into a .txt file in Visual Studio. When I do so, all the newlines disappear and it's just one single ultra long line of text.
将相同的文本复制/粘贴到notepad.exe中,因为该文本永久性地存在换行符的糟糕处理,可按预期工作并保留格式.我希望Visual Studio可以比notepad.exe更强大的文本编辑器.那么如何复制/粘贴带有格式的文本 在Visual Studio中?
Copy/pasting the same text to notepad.exe, which has had horrifically bad newline handling forever, works as expected and preserves formatting. I expect Visual Studio can be a more capable text editor than notepad.exe. So how do I copy/paste text with formatting in Visual Studio?
推荐答案
我无法复制您的问题.
I cannot duplicated your issue.
创建一个新的文本文件并粘贴您的文本,并添加一个CR以包含两行:
Created a new textfile and pasted your text, and added a CR to have 2 lines:
Puzzle inputs differ by user.
Please log in to get your puzzle input.
复制了两行.
然后在VS项目中添加了一个文本文件,并粘贴了复制的行.
Then added a textfile inside a VS project, and pasted the copied lines.
NotePad将按预期方式打开txt文件:
And NotePad opens the txt files as expected:
没问题.
这篇关于如何在Visual Studio 2015中可靠地复制/粘贴文本的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!