简体   繁体   English

如何创建Visual Studio ...文件扩展名shell?

[英]How to create Visual Studio…file extension shells?

I hope this doesn't sound like a stupid question, as I do not exactly know what terms and technologies are involved. 我希望这听起来不是一个愚蠢的问题,因为我不确切知道涉及哪些术语和技术。

When you open a .cs file in Visual Studio, the code editor opens and displays the content in the main window (Code Editor) with syntax highlighting and stuff. 在Visual Studio中打开.cs文件时,代码编辑器将打开并在主窗口(代码编辑器)中显示内容,并带有语法突出显示和填充。 When you open a .txt file, the same thing happens, except without any fancy extras because it's a plain text. 当你打开.txt文件时,会发生同样的事情,除非没有任何花哨的额外内容,因为它是纯文本。

But now, there are several files that open a whole custom UI that enables you to edit the base file .xxx with the help of dialogs etc. 但现在,有几个文件打开了一个完整的自定义UI,使您可以在对话框的帮助下编辑基本文件.xxx等。

As an example, a ftp client: In the project, there's a file something.ftp with the following content: 例如,一个ftp客户端:在项目中,有一个文件something.ftp,其中包含以下内容:

connection = [
   server: 192.168.1.52
   port: 21
   startdir: "C:\dasdasd\asdasd"
]

So a UI pops up where you can edit the base file window based, connect to a remote server, view its remote directory contents etc. 因此会弹出一个UI,您可以在其中编辑基本文件窗口,连接到远程服务器,查看其远程目录内容等。

Are those so called Shell Extensions ? 那些所谓的Shell Extensions Or Add-ins ? 还是加载项 Or Project Types ? 还是项目类型

I believe they are called Custom Editors, check out this for some info on how to create one. 我相信它们被称为自定义编辑器,请查看这些有关如何创建一个的信息。 You will want to create your own Document View . 您将需要创建自己的文档视图 This explains how to register for a specific extension. 解释了如何注册特定扩展。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 如何在Visual Studio 2017中为.sql文件创建自定义扩展名 - How to create custom extension for .sql file in visual studio 2017 如何在Visual Studio扩展中重命名嵌套文件 - How to rename a nested file in visual studio extension Visual Studio 2010:如何通过编辑器扩展在项目中创建和/或更新特定文件? - Visual Studio 2010: How do I create and/or update a specific file within a Project from an Editor Extension? Visual Studio 2015,没有 Visual Studio 扩展的 postgresql 的 create.edmx 文件 - Visual Studio 2015, create .edmx file for postgresql without visual studio extension 如何使用Visual Studio扩展来创建绿色(或蓝色)的花体装饰 - How to create green (or blue) squiggle adornments with a Visual Studio extension 如何使用Visual Studio 2013创建Outlook扩展? - How to create an outlook extension using Visual Studio 2013? 如何在Visual Studio Code中以.csproj扩展名创建C#项目? - How to create C# project with .csproj extension in Visual Studio Code? 如何创建将REPL窗口添加到Visual Studio的扩展 - How to create extension which adds REPL window to Visual Studio 如何添加 C# 扩展以在 Visual Studio 中创建新项目 - How to add C# extension to create a new project in visual studio 如何在Visual Studio中创建csx文件? - How to create csx file in Visual Studio?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM