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

    imalightbulb

    08/22/2020, 1:17 AM
    Oh this is great > yep. you can also use https://jsonlint.com/ to check your json @User
  • i

    imalightbulb

    08/22/2020, 1:18 AM
    > were you able to create your snippet? @User Nope, I went to the validator and it says my JSON has some errors
  • i

    imalightbulb

    08/22/2020, 1:18 AM
    but I don't know what does it means
  • i

    imalightbulb

    08/22/2020, 1:28 AM
    Ok I fixed it
  • i

    imalightbulb

    08/22/2020, 1:29 AM
    so if I type
    schema
    the content will appear right?
  • k

    kevins8

    08/22/2020, 1:31 AM
    yep
  • i

    imalightbulb

    08/22/2020, 1:35 AM
    Didn't work
  • i

    imalightbulb

    08/22/2020, 1:35 AM
    I tried to type
    schema
    and hit tab
  • i

    imalightbulb

    08/22/2020, 2:09 AM
    @User Do you know where's wrong in my setup?
  • u

    user

    08/22/2020, 2:11 AM
    I am afraid not, I haven’t tried dendron yet
  • i

    imalightbulb

    08/22/2020, 2:12 AM
    I'm trying to setup a snippet
  • i

    imalightbulb

    08/22/2020, 2:12 AM
    > I am afraid not, I haven’t tried dendron yet @User No prob then, I'll try and post here if it worked
  • k

    kevins8

    08/22/2020, 4:18 AM
    @User you'll also need these settings
    Copy code
    "editor.snippetSuggestions": "inline",
            "editor.suggest.snippetsPreventQuickSuggestions": false,
            "editor.suggest.showSnippets": true,
            "editor.tabCompletion": "on",
  • k

    kevins8

    08/22/2020, 4:19 AM
    another way of entering a snippet is via
    Insert Snippet
    in the command prompt
  • i

    imalightbulb

    08/22/2020, 4:21 AM
    > @User you'll also need these settings >
    Copy code
    >         "editor.snippetSuggestions": "inline",
    >         "editor.suggest.snippetsPreventQuickSuggestions": false,
    >         "editor.suggest.showSnippets": true,
    >         "editor.tabCompletion": "on",
    >
    @User In the snippet file?
  • k

    kevins8

    08/22/2020, 4:22 AM
    workspace settings
  • k

    kevins8

    08/22/2020, 4:22 AM
    dendron.code-workspace
  • k

    kevins8

    08/22/2020, 4:22 AM
    you can access it using the command prompt and then
    workspace settings (JSON)
  • i

    imalightbulb

    08/22/2020, 4:23 AM
    Where should I add it into?
  • i

    imalightbulb

    08/22/2020, 4:23 AM
    I'm in the workspace settings file
  • k

    kevins8

    08/22/2020, 4:25 AM
    the bottom of mine settings
    Copy code
    "editor.snippetSuggestions": "inline",
            "editor.suggest.snippetsPreventQuickSuggestions": false,
            "editor.suggest.showSnippets": true,
            "editor.tabCompletion": "on",
            "cSpell.words": [
                "sessionize"
            ]
        },
        "extensions": {
            "recommendations": [
                "equinusocio.vsc-material-theme",
                "dendron.dendron-markdown-shortcuts",
                "dendron.dendron-markdown-preview-enhanced",
                "dendron.dendron-markdown-links",
                "dendron.dendron-markdown-notes",
                "dendron.dendron-paste-image"
            ],
            "unwantedRecommendations": [
                "shd101wyy.markdown-preview-enhanced",
                "kortina.vscode-markdown-notes",
                "mushan.vscode-paste-image"
            ]
        }
    }
  • i

    imalightbulb

    08/22/2020, 4:27 AM
    Wait a min
  • i

    imalightbulb

    08/22/2020, 4:27 AM
    I've these lines already
  • k

    kevins8

    08/22/2020, 4:30 AM
    i would use
    insert snippet
    using
    ctrl+shift+p
    just to make sure that the snippet works
  • i

    imalightbulb

    08/22/2020, 4:31 AM
    like this?
  • k

    kevins8

    08/22/2020, 4:31 AM
    if you hit enter, are you able to insert the snippet?
  • i

    imalightbulb

    08/22/2020, 4:31 AM
    nope
  • k

    kevins8

    08/22/2020, 4:35 AM
    Copy code
    {
        "schema": {
            "prefix": "schema",
            "body": [
            "- id: sample",
            "  title: sample",
            "  desc: ",
            "  parent: root",
            ]
        }
    }
  • k

    kevins8

    08/22/2020, 4:35 AM
    this is a working snippet
  • k

    kevins8

    08/22/2020, 4:35 AM
    snippets/yaml.json
1...171819...757Latest