Take the 2-minute tour ×
Mathematica Stack Exchange is a question and answer site for users of Mathematica. It's 100% free, no registration required.

Is there any way to highlight the whole selected cell? some times if I want to delete a certain cell and if the code is long and cells are without output, it is hard to know which cell that you are selecting. For example, in this simple file, I want to select a certain cell as seen:

enter image description here

If I want to select the second cell, I may make mistake and select the above or below cell (especially if the code is long).

is there any way to highlight the whole cell once I selected it from the right?

share|improve this question
2  
This is not an answer to your question, but you may find it helpful to know that you can press Ctrl + . repeatedly to make progressively larger selections. –  mfvonh Jun 22 at 21:55
1  
If you want something "nice", add some keyevents to KeyEventsTranslation.tr file to change/revert background colors/// –  rasher Jun 22 at 22:30
    
@mfvonh thanks for this nice tip:). I am using what you have said but I thought it would be nice if I can get the cell highlighted when selected. –  Algohi Jun 22 at 22:44
    
@rashed, I will try your suggestion. thanks –  Algohi Jun 22 at 22:46
    
do you know guys how to suggest some features or ideas to Wolfram people? –  Algohi Jun 22 at 22:54

3 Answers 3

I agree that it can be hard to tell that you have selected the correct cell bracket and that having a global option to highlight the whole cell when it is selected would be good. But I don't know how to do that. What I have done to alleviate the problem is to set Option Inspector > Global Preferences > Cell Options > Display Options > CellBracketOptions > "HoverColor" to RGBColor[1, 0, 0], which is red. With this setting, when I hover the mouse cursor over a cell bracket, it turns red, confirming that, if I click, this cell with the red bracket will be the one selected. It's nowhere as good as full-cell highlighting would be, but it does help.

hover_color

share|improve this answer
    
Nice one - had not noticed this option before. +1 –  rasher Jun 22 at 23:08
    
good god this is amazing. MMA's design is incredible in some ways and in others it just makes me go WTF. –  seismatica Jun 22 at 23:47
1  
@seismatica. Welcome to the club:) –  m_goldberg Jun 22 at 23:52
    
@m_goldberg - Thank you very much –  eldo Jun 23 at 0:22
1  
@Algohi. Do you have the same mixed emotions as seismtica when you use Mathematica? If you do, I am happy to extend my welcome to you, too. –  m_goldberg Jun 23 at 0:59

I'm not sure if this solves your problem but if you want to select a particular cell (without mistakenly selecting others), just put your horizontal bar--whatever it's called--above or below the cell, whichever position that's more convenient to you (for example, for an output cell, it makes sense to put the bar below it instead of navigating up to the narrow strip between the input and output cell).

Then, you can press Shift+Up or Shift+Down to select the cell above/below the bar. The nice thing about this is it will always select only one cell even if this cell belongs to a group or is joined by a hidden cell. To select other cells, just continue pressing Up and Down while holding Shift.

share|improve this answer
    
Another neat thing that I found by accident just now is that once you select a cell (either by clicking on its right-side bracket or by using the Shift method in my answer), you can just press Up or Down (without holding Shift) to navigate to the correct cell in the event that you found you'd just selected the wrong cell. –  seismatica Jul 11 at 19:54

You want to delete a certain cell, but you are unsure whether you selected the right bracket:

Click the bracket, select Style and then Title. If you hit the wrong bracket, select Input.

Another way (if you deleted the wrong cell) is to immediately press Ctrl + z

share|improve this answer
    
I can also use Alt+4 (or any number from 1 to 7) to quickly change the style of the selected cell. thanks for the suggestion. –  Algohi Jun 22 at 22:50
    
@Algohi - very nice ! Alt+1 to highlight and Alt+9 to go back to InputForm :) –  eldo Jun 22 at 22:59

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.