How to create a region in eclipse like Visual Studio

Hi I am working with Eclipse tool and I am so interested to know how can I create Region in Eclipse like in Visual Studio we can create

# abc scopes

// Some code

#endregion abc

How to achieve the same in Eclipse.

+4


source to share


4 answers


Commented on a comment.

Eclipse has a code summary. You can find it in Window-> Preferences, then find "folding". But it just wraps methods / functions / comments, etc.



There is a plugin that was used to work in Eclipse 4.2 called Coffee Bytes , but it is no longer supported. Therefore, use is at your own risk.

Lots of "buts", I know;).

+2


source


#region

is a feature of the C # language. Unless you are writing C # in Eclipse via some plugin (and there actually is one), you cannot. If you are writing C # in Eclipse just type it in. But I don't know if Eclipse will hide it like Visual Studio does.



0


source


check it out There is no way to do this in eclipse. The eclipse idea does not provide a region path from areas of code like visual studio, I came from visual studio to outshine and this is the problem I had.

0


source


well, just like you did 4 years ago, I was looking for a way to do the same. but if still relevant, I have a way to do it without using a third party implementation in your Eclipse.

It looks like this: it starts off like Kalon mentioning: Window --- -> Preferences --- -> Java --- -> Editor --- -> Folding and mark √ on all the checkboxes, as you can see here:

Preferences Window in Eclipse After all these settings, apply and close the Preferences window as well as the Eclipse program.

then restart your computer.

log back into Eclipse: and this is how you can use comment folding:

  • / * * * * /

I am attaching another image so you can see how this is done in Eclipse:

By the way, you don't need to use the word region ... I added it just to explicitly

scope on Eclipse IDE

0


source







All Articles