These are custom settings for the VSCode extension Mark Jump
You'll be able to organize your code files in sections and easy jump to either of them :
- MARKS
- TODO / FIX
- NOTE
Just place your sections in comments and respect format below.
Note: they replace the default settings to avoid conflicts
- Case insensitive
- Heading level support by adding prefix
#
or>
are level 1 (mandatory)##
or>>
are level 2###
or>>>
are level 3- and so on
- Precede and follow your
#
with a space. e.g.:// # Awesome title
- Precede your todo, fix and note with
>
(mandatory) - Don’t forget to end todo, fix and note with a colon
:
(doesn’t matter if surronding by [space]) - Matches all sections in comments beginning with
//
or/*
or<!--
or--
orrem
or::
. They have to be on the same line - Matches all sections that are at the beginning of a line (supports spaces/tabs before)
- Writers name into parenthesis for todo, fix and note are optional
This settings should be relevant at least for JS, JSON, CSS, HTML/XML, Lua, bat/cmd files. I will keep the GIST updated for fixes and more languages support. Else add your own patterns with small needed edition of those existent ones to add the comments that the marks should support.
Please add a comment to this GIST to alert me of issues or questions.
// # LEVEL 1
var codeA = 'any line of code here'
/*>> TODO(fred) : LEVEL 2
>> NOTE (bob) : LEVEL 2*/
var codeB = 'any line of code here'
// # LEVEL 1 bis
var codeC = 'any line of code here'
/*>> TODO(fred) : LEVEL 2 bis
>> NOTE (bob) : LEVEL 2 bis*/
var codeD = 'any line of code here'
Use ctrl+alt+s
or ctrl+alt+m
to display the widget
- Install Mark Jump extension if you didn't already do.
- Copy and paste the attached Mark Jump custom settings.json content to your VSCode user settings file.
- Optionnaly, do the same for the attached Jump custom keybindings.json. It swithes the default key
ctrl+alt+s
andctrl+alt+m
- Optionnaly, do the same for the attached Jump custom keybindings.json. It swithes the default key
- Save settings and enjoy
Really helpful, even years later.
Thank you