leodevbro / vscode-blockman

VSCode extension to highlight nested code blocks
https://github.com/leodevbro/vscode-blockman
MIT License
465 stars 17 forks source link

Incorrect definition of the beginning of blocks #81

Closed bimkassir closed 2 years ago

bimkassir commented 2 years ago

Today I turned on the extension and faced with the fact that the blocks do not start where they should. I use: "editor.fontFamily": "Verdana", "editor.fontSize": 12, file: .vue (it works the same way in .js). Screenshot_1

Screen attached. I'll be happy to add any additional information you need.

leodevbro commented 2 years ago

Hello, "Verdana" font is not a monospace font. In general, it's not a good idea to use non-monospace font in a code editor.

In Blockman page, I have written this instruction:

Please don't use non-monospace font. Use only monospace font like 'Oxygen Mono', 'BPG 2017 DejaVu Sans Mono' or other. Block-rendering is based on equal character-frame-widths, because pixel locations of characters is not accessible through VS Code API.