Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

region and endregion support please in makefile #544

Open
cavo789 opened this issue Dec 15, 2023 · 1 comment
Open

region and endregion support please in makefile #544

cavo789 opened this issue Dec 15, 2023 · 1 comment
Labels
enhancement New feature or request

Comments

@cavo789
Copy link

cavo789 commented Dec 15, 2023

Hi,

Is it possible to add support in vscode for # region and # endregion block like in other supported language.

For instance:

# region - ANSI colors support
COLOR_BLUE:=34
COLOR_CYAN:=36
COLOR_GRAY:=30
COLOR_GREEN:=32
COLOR_PURPLE:=35
COLOR_RED:=31
COLOR_WHITE:=37
COLOR_YELLOW:=33

_CYAN   := "\e[1;${COLOR_CYAN}m%s\033[0m %s\n"   # F.i. printf $(_CYAN)   "Info xxx"
_GRAY   := "\e[1;${COLOR_GRAY}m%s\033[0m %s\n"   # F.i. printf $(_GRAY)   "ipso lorem"
_GREEN  := "\e[1;${COLOR_GREEN}m%s\033[0m %s\n"  # F.i. printf $(_GREEN)  "Success - xxx"
_RED    := "\e[1;${COLOR_RED}m%s\033[0m %s\n"    # F.i. printf $(_RED)    "Error - xxx"
_WHITE  := "\e[1;${COLOR_WHITE}m%s\033[0m %s\n"  # F.i. printf $(_WHITE)  "ispo lorem"
_YELLOW := "\e[1;${COLOR_YELLOW}m%s\033[0m %s\n" # F.i. printf $(_YELLOW) "ispo lorem"
# endregion

I would like to be able to fold the ANSI color block.

Not supported

(as you can see, folding is not supported here above)

For information, code folding already supported when there is indentation like in:

# region - help
help:
      # any valid code 
# endregion

Well supported when there is an indentation

(as you can see, folding is well supported here above as soon as there is an indentation)

Thanks!

@gcampbell-msft
Copy link
Collaborator

@cavo789 Thanks for the request! I'll mark this as a feature request and we'll keep it under consideration in future planning.

@gcampbell-msft gcampbell-msft added enhancement New feature or request and removed triage labels Dec 18, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants