如何在Visual Studio编辑器中查看列对齐的CSV文件 [英] How to view column-aligned CSV files in Visual Studio editor

查看:140
本文介绍了如何在Visual Studio编辑器中查看列对齐的CSV文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在Visual Studio中打开.csv文件会产生不可读的混乱情况.有什么方法可以将Visual Studio设置为自动将这些文件格式化为列(可以说是网格视图"),以便我可以直接在IDE中对其进行编辑?是否有任何技巧,变通办法或扩展名可以使这些文件更易于阅读?

Opening a .csv file in Visual Studio produces an unreadable jumbled mess. Is there any way to set up Visual Studio to automatically format these files in columns (a "grid-view", so to speak) so I can edit them directly in the IDE? Are there any tricks or workarounds or extensions that could make these files more easily readable?

(VSCode具有一个很棒的扩展这种事情,但是可惜,它在Visual Studio中无法正常工作Pro/Enterprise.此外,BeyondCompare4会自动执行此操作,而Notepad ++也具有支持此功能的TextFX插件.没有人为VS生产过这样的插件吗?)

(VSCode has what looks to be a fantastic extension for this sort of thing, but alas, it won't work in Visual Studio Pro/Enterprise. Also, BeyondCompare4 does this automatically, and Notepad++ has the TextFX plugin which supports this as well. Has no one ever produced such a plugin for VS?)

(更新:我创建了

(UPDATE: I have created a feature request here. Please vote for it if you upvote this ticket.)

推荐答案

您可以通过在VSCode扩展名"菜单中的搜索工具中搜索csv-viewer扩展名来安装它们.

You can install csv-viewer extensions by searching for them in the search tool in the VSCode "Extensions" menu.

一些不错的是GrapeCity的"Excel Viewer"或janisdd的"Edit csv".

Some good ones are 'Excel Viewer' by GrapeCity, or 'Edit csv' by janisdd.

这两个(以及更多)都使您可以查看VScode内列中的excel文件,而不仅仅是默认情况下的文本文件.

Both of these (and many more) allow you to view excel files in columns inside VScode, not just text files as is default.

这篇关于如何在Visual Studio编辑器中查看列对齐的CSV文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆