Skip to content

Prompt file type after creating a new file #111053

Closed

Description

tl;dr: Make is easier to start coding in new files by prompting users to set the language mode earlier.

Problems

Creating new files results in a plain text file until the file is saved or a language mode is set. In researching new users, this confused both people new to coding and experienced IDE users.

Saving a file without a language mode set also causes the save dialog to not have a default file extension (in windows the extension list can be long and unwieldy).

Solutions

Prompt for language mode after New File opens

One possible solution is that "New File" open the language mode picker right after opening the blank file. The prompt can still be closed if a plain text file is what the user wants.

A risk that was called out is that users might expect the first prompt to name the file. The language prompt picker does not allow any input, so this wouldn't be accepted. As the only label for the picker is the input placeholder, UX could be improved to have clearer instructions for the picker even after users start typing.

Prompt for language mode before saving a new file

Alternatively, the language prompt can show before saving to make the save dialog easier to use. This means until saving most user will not have any language features.

Nudge to set language mode

As a onboarding bandaid, the UI could annotate/highlight the language element in the status bar; but now users tend to miss those subtle nudges.

Activity

  1. added
    feature-request
    on Nov 20, 2020
  2. vscode-triage-bot commented on Nov 20, 2020

    @vscode-triage-bot

    This feature request is now a candidate for our backlog. The community has 60 days to upvote the issue. If it receives 20 upvotes we will move it to our backlog. If not, we will close it. To learn more about how we handle feature requests, please see our documentation.

    Happy Coding!

  3. sana-ajani commented on Nov 20, 2020

    @sana-ajani
    Contributor

    Related to this: #110330

    I think we could run this one as an A/B test. The current implementation that Christof added prompts users with the save dialog when clicking "New File". The test could be prompting users with the language mode picker and we can measure if users are more likely to install the recommended extension and other actions from the newly created file.

  4. chrisdias commented on Nov 20, 2020

    @chrisdias
    Contributor

    related, I wonder if we could do a watermark, similar to repl.it which is using the Monaco editor.

    image

  5. miguelsolorio commented on Nov 20, 2020

    @miguelsolorio
    Contributor

    I think this has always been modeled after current text editors like Sublime and Textmate. If the behavior were to ever be changed, we'd definitely need a setting to toggle it. Changing it does add friction when you want to quickly write down notes and could annoy current users. Do we have any open issues related to this?

  6. digitarald commented on Nov 20, 2020

    @digitarald
    ContributorAuthor

    I think this has always been modeled after current text editors like Sublime and Textmate.

    That origin makes sense. One counter argument to this is that VS Code diverged from those basic code editors with code intelligence as a core value proposition (which doesn't work in a plain text file).

    Changing it does add friction when you want to quickly write down notes and could annoy current users.

    Agreed on having a pref for it (advanced users already have files.defaultLanguage, maybe this can build on it). I'd hypothesize that the risk of frustration for power users is small as the picker can be quickly dismissed by Esc and click.

  7. sana-ajani commented on Nov 20, 2020

    @sana-ajani
    Contributor

    I'd also suggest only having this language mode choice when a user clicks on "new file" from the welcome page. Hypothesis here is that advanced users likely create new files in existing or open folders, or using cmd+n and we don't want to add that step there.

  8. vscode-triage-bot commented on Jan 10, 2021

    @vscode-triage-bot

    This feature request has not yet received the 20 community upvotes it takes to make to our backlog. 10 days to go. To learn more about how we handle feature requests, please see our documentation.

    Happy Coding!

  9. vscode-triage-bot commented on Jan 20, 2021

    @vscode-triage-bot

    🙁 In the last 60 days, this feature request has received less than 20 community upvotes and we closed it. Still a big Thank You to you for taking the time to create this issue! To learn more about how we handle feature requests, please see our documentation.

    Happy Coding!

  10. locked and limited conversation to collaborators on Mar 6, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    feature-request

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions