Language guessing: Allow paste contents to override `files.defaultLanguage`?
See original GitHub issueSpeaking with @sbatten it was griped that the āpaste contents into an untitled editor to set the language to the paste sourceā flow doesnāt work when you have files.defaultLanguage
configured. This is intentional AFAIK but maybe worth revisiting? Relevant code:
Issue Analytics
- State:
- Created a year ago
- Reactions:2
- Comments:11 (11 by maintainers)
Top Results From Across the Web
Reduce automated language setting of untitled file on paste
Open a new file (defaults to plain text); Paste text from another editor; Notice it changes the language mode (expected, fine); Set language...
Read more >PowerPoint 2016 for Mac language bug - Microsoft Community
Any pasted English text will override the default language setting to English (United States). This will ignore the local macOS language settingĀ ...
Read more >Prevent Visual Studio Code to use auto-complete on PlainText
Look at language-specific settings . See https://code.visualstudio.com/docs/getstarted/settings#_language-specific-editor-settings
Read more >Domain and language detection [#3222865] | Drupal.org
You need to overwrite the `default_langcode` per domain, which should be available using Domain Config module. See the README.md file in thatĀ ...
Read more >VS Code tips ā Changing the default language of untitled files
Today's VS Code setting: files.defaultLanguageUse ' Files : Default Language ' to configure the language for new files. Use "markdown" to treatĀ ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
in the base case of this issue, we know exactly the language because it comes from an existing file. We donāt rely on the model in this case.
š to configurable, I paste far more into untitled markdown files than anything else and sometimes I start with pasting code before wrapping it in backticks. Since Iām comfortable with the change language keybinding I prefer to do that in the off chance I need it. If we do make it configurable Iād suggest just making a separate setting and not have the language detection code consider the default language setting at all.