Skip to content

Customize 'Save as type' shown in 'Save' dialog for a new file #540

@sajithpt

Description

@sajithpt

Iam working on a Visual Studio extension that provides an option to open new files. New files are opened using
EnvDTE.ItemOperations.NewFile("General\SQL File", "Untitled1.sql", EnvDTE.Constants.vsViewKindTextView);

This file gets associated with MSSQL extension and shows the followig toolbar -

Image Is there a way to prevent getting this file associated with MSSQL extension (even when the file extension is .sql)? Is there a way to open new in memory files using a custom editor ?

Also, is there a way to customize filters shown in Save dialog when we save these in memory files ?

Image I want to add custom file types, for eg. My Files (*.myf) as 'Save As' type.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions