VisualStudio 2005 and Bookmarks

V

Viviana Vc

Hi all,

I used until now Visual Studio 2003 and now I updated to Visual Studio
2005 and I have problems with the bookmarks.

1) until now if you had several bookmarks into one document, with F2 you
were jumping from the current one to the next one, next one meaning the
closest when going to the bottom of the page. Now, F2 is jumping in the
order you put thos bookmarks, so is either up, or down.

2) if you have bookmarks in several docs, and you F2 in one doc, it will
actually jump in the other doc too.

I don't want this behaviour and I would like to have the old behaviour
back. Any clue how can I disable this behaviour?

Thx,
Viv
 
P

Peter Macej

You can see multiple bookmarks related buttons on your toolbar. There are:
1. next/previous bookmark
2. next/previous bookmark in folder
3. next/previous bookmark in current document

Number 3 may be what you want. Just assign your desired shortcut F2 to
it. See my blog http://www.helixoft.com/blog/archives/8 for info how to
do it. The name of this command is Edit.NextBookmarkInDocument.
 
T

Tom Serface

I don't think there is a way to change this behavior, but there is a toolbar
button you can add that makes it work just in the current document. You
could also assign/reassign the keyboard accelerators to do what you want
with the commands (like change F2 to be in the document rather than all
documents)

You can also display the Bookmark Window (from the View menu) which allows
you to go to them or manage them pretty nicely. If you set up regular ones
it's nice to be able to rename them.

Tom
 
V

Viviana Vc

Hi Peter,

Thx for your answer. It worked! :)

I tried to follow your steps and I did the following (indeed what I want
is: "next bookmark in the current document"):
1) Tools -> Options -> select Edit.NextBookmarkInDocument
2) Hit F2 in the Press shortcut key
3) hit Assign
=> I didn't get any warning or such, but still didn't work. It was still
the previous behaviour.

The other settings that were on that page:
- "Apply the following additional keyboard mapping scheme" - "Visual C++
6"
- "USe new shortcut in" - "Global"

I assumed this didn't work b/c of what you also mentioned in your blog
"Remember that you cannot change or assign the shortcut if you are using
predefined keyboard mapping scheme. You will be warned in this case."
(but I wasn't warned).
Also I couldn't do the suggestion "You must create a copy of current
scheme and use that copy. Press Save As… button under Keyboard mapping
scheme and give it some name. Then select this new scheme." as I don't
have the "Save As" button, I only have a "Reset" button.

I also tried to change the "Apply the following additional keyboard
mapping scheme" to "Default", but then the CTRL+F2 (used to set a
bookmark) didn't work anymore.

In the end I changed the "Use new shortcut in" to "Text Editor" and now
seems everything works as I want :)

So the final settings on that page look for me like:
- "Apply the following additional keyboard mapping scheme" is "Visual
C++ 6"
- command Edit.NextBookmarkInDocument
- "USe new shortcut in" is "Text Editor"
- "Press shortcut key" F2
- hit Assign button

Thx,
Viv
 
P

Peter Macej

I assumed this didn't work b/c of what you also mentioned in your blog
"Remember that you cannot change or assign the shortcut if you are using
predefined keyboard mapping scheme. You will be warned in this case."
(but I wasn't warned).
Also I couldn't do the suggestion "You must create a copy of current
scheme and use that copy. Press Save As… button under Keyboard mapping
scheme and give it some name. Then select this new scheme." as I don't
have the "Save As" button, I only have a "Reset" button.

Yes, you are right. This part only applies to VS 2002 and VS 2003, not
VS 2005.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top