https://www.dendron.so/ logo
Join Discord
Powered by
# questions
  • j

    José Longo

    06/11/2022, 10:03 AM
    Hi there! Someone found a way to get snippets suggestion as we write (without ctrl+space) ???
  • j

    José Longo

    06/11/2022, 10:55 AM
    Find it -> https://wiki.dendron.so/notes/692fa114-f798-467f-a0b9-3cccc327aa6f/#snippets . Insert the example inside settings object on workspace file and change the line
    Copy code
    "editor.suggest.showSnippets": false,
    to true
  • x

    Xanaus

    06/11/2022, 6:31 PM
    Did this work for u?
  • j

    José Longo

    06/11/2022, 6:34 PM
    yes
  • j

    José Longo

    06/11/2022, 6:35 PM
    Just one reminder... open the workspace file not the folder with code
  • x

    Xanaus

    06/11/2022, 6:38 PM
    U mean the first one?
  • j

    José Longo

    06/11/2022, 6:38 PM
    yes
  • j

    José Longo

    06/11/2022, 6:39 PM
    and is there also where you place the example code in "settings" object
  • x

    Xanaus

    06/11/2022, 6:39 PM
    https://pastebin.com/Wx25iCgr
  • x

    Xanaus

    06/11/2022, 6:40 PM
    like this right?
  • j

    José Longo

    06/11/2022, 6:41 PM
    yes, change last line from false to true
  • x

    Xanaus

    06/11/2022, 6:43 PM
    i dont have to put
    Copy code
    "[markdown]": { }`
    in the code?
  • j

    José Longo

    06/11/2022, 6:43 PM
    ops, yes, you need
  • j

    José Longo

    06/11/2022, 6:44 PM
    Copy code
    "settings": {
        "[markdown]": {
        // quickSuggestions true will provide suggestions as you type.
        // If you turn this on and DO NOT want suggestions
        // for non-wiki-link, non-tag words,
        "editor.quickSuggestions": true,
        // This is poorly documented, but seems to offer suggestions
        // from any word in open document when turned on, which
        // can be a little distracting in Markdown docs:
        "editor.wordBasedSuggestions": false,
        "editor.tabSize": 2,
        // Set this to false if you turn on quickSuggestions
        // but don't want suggestions for Markdown related snippets
        // as you type:
        "editor.suggest.showSnippets": true,
      },
        "dendron.rootDir": ".",
        "files.autoSave": "onFocusChange",
        "pasteImage.path": "${currentFileDir}/assets/images",
        "pasteImage.prefix": "/",
        "markdown-preview-enhanced.enableWikiLinkSyntax": true,
        "markdown-preview-enhanced.wikiLinkFileExtension": ".md",
        "editor.snippetSuggestions": "inline",
        "editor.suggest.snippetsPreventQuickSuggestions": false,
        "editor.suggest.showSnippets": true,
        "editor.tabCompletion": "on",
        "dendron.enableSelfContainedVaultWorkspace": true
      },
  • j

    José Longo

    06/11/2022, 6:45 PM
    My settings example
  • j

    José Longo

    06/11/2022, 6:46 PM
    you can remove the comments lines if you want
  • x

    Xanaus

    06/11/2022, 6:50 PM
    Thanks it is working now for me
  • x

    Xanaus

    06/11/2022, 6:51 PM
    Have u also set up the auto bullet list
  • j

    José Longo

    06/11/2022, 6:52 PM
    that are default settings...
  • j

    José Longo

    06/11/2022, 6:53 PM
    But i found that if i open the folder and not the workspace file, the settings don't get loaded
  • x

    Xanaus

    06/11/2022, 6:56 PM
    Copy code
    {
      "key": "shift+enter",
      "command": "type",
      "args": {
        "text": "\r\n- "
      },
      "when": "editorTextFocus && !editorReadOnly && editorLangId == 'markdown'"
    }
    Have u set this up is what I meant?
  • j

    José Longo

    06/11/2022, 6:57 PM
    Nope, the snippet i gave here do not have that
  • j

    José Longo

    06/11/2022, 6:58 PM
    that seems to be for keybinding
  • x

    Xanaus

    06/11/2022, 7:00 PM
    ok if U can use this as a shortcut to intened the
    -
  • x

    Xanaus

    06/11/2022, 7:00 PM
    yep its a keybinding
  • j

    José Longo

    06/11/2022, 7:07 PM
    Open keybindings.json and place that code there
  • x

    Xanaus

    06/11/2022, 7:07 PM
    Are u familar with writting keybinding for vscode?
  • x

    Xanaus

    06/11/2022, 7:08 PM
    I want to intend with tab alone
  • x

    Xanaus

    06/11/2022, 7:08 PM
    instead of shift+ enter
  • j

    José Longo

    06/11/2022, 7:09 PM
    "tab" is used in other situations, don't seems to me a good choice
1...655656657...757Latest