Skip to content

Customizing editor

nejiko edited this page May 13, 2023 · 2 revisions

Customizing editor

Visual Studio Code

  • Run Configure Tasks from the global Terminal menu.
  • Select the Create tasks.json file from template entry.
  • Select Others from the list.
  • Add following settings to tasks.json.
{
  "version": "2.0.0",
  "tasks": [
    {
      "label": "AtCoderFriends:New Contest",
      "type": "shell",
      "command": "at_coder_friends",
      "args": [
        "setup",
        "${input:contestName}"
      ],
      "problemMatcher": [],
      "group": "none"
    },
    {
      "label": "AtCoderFriends:Test One",
      "type": "shell",
      "command": "at_coder_friends",
      "args": [
        "test-one",
        "${file}"
      ],
      "problemMatcher": [],
      "group": "none"
    },
    {
      "label": "AtCoderFriends:Test All",
      "type": "shell",
      "command": "at_coder_friends",
      "args": [
        "test-all",
        "${file}"
      ],
      "problemMatcher": [],
      "group": "none"
    },
    {
      "label": "AtCoderFriends:Submit",
      "type": "shell",
      "command": "at_coder_friends",
      "args": [
        "submit",
        "${file}"
      ],
      "problemMatcher": [],
      "group": "none",
    },
    {
      "label": "AtCoderFriends:Check & Go",
      "type": "shell",
      "command": "at_coder_friends",
      "args": [
        "check-and-go",
        "${file}"
      ],
      "problemMatcher": [],
      "group": "none",
    },
    ...
  ],
  "inputs": [
    {
      "id": "contestName",
      "type": "promptString",
      "default": "",
      "description": "Contest Name"
    }
  ]
}

Sublime Text

It is convenient to use AtCoderFriends from Sublime Text plugin.

Demo