Skip to content

Notebook Mode enabled for specific files #2866

Closed
@EmmanuelDefranc

Description

@EmmanuelDefranc

Summary of the new feature

Include a new keyword that allows VSCode to open the .ps1 with Notebook Mode enable right away.

Proposed technical implementation details (optional)

Since the idea of the PowerShell Notebook Mode is to have the same file extension for scripts or interactive books, it would be great if there was such a code instruction that would open the ps1 right away either with Notebook Mode enabled or disabled.

e.g. #Requires -NotebookMode enabled
The keyword 'requires' does not suit the case, but I meant to show how the idea could be somehow implemented

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions