Skip to main content
Known Participant
March 31, 2019
Answered

[DW 19] Code Editor Brackets: How to prevent a leading Tab after e.g. body or p?

  • March 31, 2019
  • 2 replies
  • 969 views

Hi.

Still I'm not used to the code editor Brackets.

Please, can you give me a hint how I can prevent a leading tab after an "enter" behind e.g. "<body>" or "<p>".

I couldn't find an option inside the preferences.

And please, how can I prevent Brackets from highlighting the start and the end tag, when you place the cursor directly in front of the end tag?

The default background color of that highlighting is very dominant (brown) and the cursor get's almost invisible.

Thanks.

This topic has been closed for replies.
Correct answer Nancy OShea

Go to View > Code View Options > remove checkmark by Auto Indent.

2 replies

Nancy OShea
Community Expert
Community Expert
March 31, 2019

mistershortcut  wrote

how can I prevent Brackets Dreamweaver from highlighting the start and the end tag, when you place the cursor directly in front of the end tag?

DW's code editor is based on Brackets but it's not a full installation of Brackets.   Edit your Dreamweaver code theme's LESS file.  The style rules should be on or around  line 332  --  CodeMirror-matchingtag {  }

See this related discussion for more details.

Re: Dreamweaver highlighting when I insert cursor

Nancy O'Shea— Product User & Community Expert
Nancy OShea
Community Expert
Community Expert
March 31, 2019

Code formatting comes from Tag Library definitions you create in Preferences.  Once your code formatting is set-up the way you like it,  you may  Apply Source Formatting to remove indents.

Nancy O'Shea— Product User & Community Expert
Known Participant
March 31, 2019

Thanks Nancy.

But of course I checke "Edit Tag Libraries" before I posted my question.

There is noch Option to prevent that Tab after "<body>"

An example in the code view ("|" = cursor) :

1. <body>|

2. When I press the enter key I get

<body>
⇥|


I tried all Option in the "Edit Tag Libraries" of the tag body. Not any of them prevents the Tab.

Nancy OShea
Community Expert
Nancy OSheaCommunity ExpertCorrect answer
Community Expert
March 31, 2019

Go to View > Code View Options > remove checkmark by Auto Indent.

Nancy O'Shea— Product User & Community Expert