Regions and pragma mark on IDEA

github logo ・1 min read

Originally posted on my blog.

For once, a happy log.

After working in Objective-C for a bit, and falling in love with
#pragma mark - Title, I went back working in Go (for some updates to the
paste service).

I'm working on cleaning the code and moving things around to clear everything,
and I did search for an alternative to the #pragma mark pre-processor
instruction.

I just discovered the // region Title and // endregion, which are just
working perfectly fine on JetBrains products.

It's awesome to have such markup for code "grouping" and structure!

twitter logo DISCUSS
Classic DEV Post from Jan 2

If you've recently switched code editorsβ€” How's it going so far?

...

Artemis profile image
French student, developer/gamer, fond of security & software development. Open to all questions.

Like what you're reading?
Hit the +FOLLOW button.

❀️