Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Newcomers » Newcomers » Marks in the eclipse editor(Like using F2 in notepad++ y and F4 in ediplus)
Marks in the eclipse editor [message #661841] Mon, 28 March 2011 08:21 Go to next message
Nico  is currently offline Nico Friend
Messages: 2
Registered: March 2011
Junior Member
Hi everyone!

I am new here, using eclipse for a couple of years. I have used other editors such as notepad++ and editplus.

In notepad++ using F2, you set a mark in the left margin in the line you are positioned, and then, pressing CTRL + F2, you go there again, no matter where you are. You can set as many of these marks as you want.
In editplus2 o editplus3, it is the same using F4 to set de mark and F9 to go to the mark, as well, you can use the find dialog in order to set marks in everyline that contains what you are looking for.

My question is, can you set these kind of marks in eclipse? HOW?


I tried to find in the forums, but the search seems not to be working Sad

Thanks in advance!!

[Updated on: Mon, 28 March 2011 13:30]

Report message to a moderator

Re: Marks in the eclipse editor [message #661850 is a reply to message #661841] Mon, 28 March 2011 08:30 Go to previous messageGo to next message
Dani Megert is currently offline Dani MegertFriend
Messages: 3802
Registered: July 2009
Senior Member
On 28.03.2011 10:21, Nico wrote:
> Hi everyone!
>
> I am new here, using eclipse for a couple of years. I have used other
> editors such as notepad++ and editplus.
>
> In notepad++ using F2, you set a mark in the left margin in the line
> you are positioned, and then, pressing CTRL + F2, you go there again,
> no matter where you are. You can set as many of these marks as you want.
> In editplus2 o editplus3, it is the same using F4 to set de mark and
> F9 to go to the mark, as well, you can use the find dialog in order to
> set marks in everyline that contains what you are looking for.
>
> My question is, can you set these king of marks in eclipse? HOW?
Yes, but only one mark exists per textual editor. To use this feature
assign your desired key bindings on the 'Keys' preference page to the
following commands: 'Set Mark', 'Swap Mark' and 'Clear Mark'.

Dani
>
>
> I tried to find in the forums, but the search seems not to be working :(
>
> Thanks in advance!!
Re: Marks in the eclipse editor [message #661900 is a reply to message #661850] Mon, 28 March 2011 13:28 Go to previous messageGo to next message
Nico  is currently offline Nico Friend
Messages: 2
Registered: March 2011
Junior Member
Thanks a lot for your faaaaast answer!!

However, I guess that setting a mark gets the mark where you are, the swap changes the cursor position from where you are and where you did set the mark, and viceversa.
And the Clear mark command... d'oh! clears it Laughing

If this is the way it is supposed to work, it does not work well Sad

sometimes swapping the mark, sets the mark where the cursor is.

And you cannot see where the mark is.

By the way!! I am using Eclipse Helios

It would be great that eclipse had something powerfull like notepad++ , when you hear about it you could think it is useless, but when you get used to it, you cannot do anything without it.

Thanks again Dani Megert!
Re: Marks in the eclipse editor [message #661910 is a reply to message #661900] Mon, 28 March 2011 13:38 Go to previous messageGo to next message
Dani Megert is currently offline Dani MegertFriend
Messages: 3802
Registered: July 2009
Senior Member
On 28.03.2011 15:28, Nico wrote:
> Thanks a lot for your faaaaast answer!!
>
> However, I guess that setting a mark gets the mark where you are, the
> swap changes the cursor position from where you are and where you did
> set the mark, and viceversa.
Yep, that's how it works.

Dani
> And the Clear mark command... d'oh! clears it :lol:
> If this is the way it is supposed to work, it does not work well :(
> sometimes swapping the mark, sets the mark where the cursor is.
>
> And you cannot see where the mark is.
>
> By the way!! I am using Eclipse Helios
>
> It would be great that eclipse had something powerfull like notepad++
> , when you hear about it you could think it is useless, but when you
> get used to it, you cannot do anything without it.
>
> Thanks again Dani Megert!
Re: Marks in the eclipse editor [message #662491 is a reply to message #661841] Wed, 30 March 2011 20:11 Go to previous message
Eric Rizzo is currently offline Eric RizzoFriend
Messages: 3070
Registered: July 2009
Senior Member
On 3/28/11 4:21 AM, Nico wrote:
> Hi everyone!
>
> I am new here, using eclipse for a couple of years. I have used other
> editors such as notepad++ and editplus.
>
> In notepad++ using F2, you set a mark in the left margin in the line you
> are positioned, and then, pressing CTRL + F2, you go there again, no
> matter where you are. You can set as many of these marks as you want.
> In editplus2 o editplus3, it is the same using F4 to set de mark and F9
> to go to the mark, as well, you can use the find dialog in order to set
> marks in everyline that contains what you are looking for.
>
> My question is, can you set these king of marks in eclipse? HOW?

Eclipse has a feature called Bookmarks that might meet your needs. You
can right-click in the left gutter of an editor and select Add
Bookmark... (you can also assign a keyboard shortcut for it via the
Preferences). To view and navigate to your Bookmarks, open the Bookmarks
view (Control+3/Command+3 and type Bookmarks, or use Window > Show View)

Eric
Previous Topic:Eclipse PHP
Next Topic:Is there an easy way to upgrade from Classic to EE?
Goto Forum:
  


Current Time: Thu Sep 26 01:42:42 GMT 2024

Powered by FUDForum. Page generated in 0.08681 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top