I've already followed the advice here, but that still leaves all the # symbols and the #code{} blocks highlighted, which I find annoying and ugly.
I assume there's a setting in Tools -> Options -> Environment -> Fonts and Colors, but I can't find it.
That is the HTML Server-Side Script display item in Tools -> Options -> Environment -> Fonts and Colors
Does anyone know how to open two files in the same Xcode9 window (via tabs). This used to be so easy and intuitive, but it seems Apple has broken this functionality entirely.
I have used the Preference -> Navigation options and they have absolutely no affect on the behavior of the application.
Thanks for your help!
I don't know about tabs..., but I think that is because there is an easier way to open a second file on the same window...
Go to the file navigator
Search for the file you want to open
Option + Double click it and you will get a second editor for that file on the same window.
NOTE - My preferences are:
a. Preferences -> Navigation -> Optional Navigation = Uses Single Assistant Editor
b. Preferences -> Navigation -> Double Click Navigation = Uses Separate Window
when update to xcode9 ,i found the if or swith {} can not be fold,any one know how to fold "{}" in the read area
It Seems that, fold unfold options from sidebar on editor are removed in xCode 9.
But you can still do it from Editor.
by following way you can achieve the same. (You can always use the shortcuts)
Editor -> Code Folding -> Fold/Unfold
Hope this will help you out.
It's back in Xcode 10. You can turn it on from menu Xcode -> Preferences -> Text Editing tab -> Edit tab -> check show: code folding rebbon
I started playing around with javascript on Visual Studio 2013 and I couldn't figure out why it is not automatically positioning the cursor to the correct indentation level, instead always resetting back to the head. For example:
function foo(y) {
var f = function bar(x) {
|<-- cursor should be here, but ends up
|<-- over here
}
Does anyone else see this and how do you change it?
I have the typescript, nodejs plugin installed and that's about it.
With a bit of research, things started working for me. First check that, Tools -> Options -> Text Editor -> Javascript -> Tabs -> Indenting is set to 'Smart'. Next restart VS. For me restarting was important since, apparently, my file had some mixed line-endings and that was throwing off the indentation engine. Hope this helps someone.
In my case, the whole javascript formatting stopped working for every file, I could play with language options and restart VS, nothing helped, until I unchecked:
Tools -> Options -> Text Editor -> JavaScript/TypeScript -> Language Service -> Enable the new JavaScript language service
The editor returned to old school javascript formatting, which is sufficient for me.
I'm not sure if this applies to Visual Studio 2013 (the original question), but in 2015 at least, you can select the text in your JavaScript file you want to format, right-click, and then choose "Format Selection". There's a keyboard short-cut as well (Ctrl-K, Ctrl-F).
If you already have Tools -> Options -> Text Editor -> Javascript -> Tabs -> Indenting set to 'Smart', then try setting this option (the Indenting setting) to 'None' and click OK.
Open the Options back up and, set Tools -> Options -> Text Editor -> Javascript -> Tabs -> Indenting back to 'Smart', click OK.
Close and reopen the file you were working on.
I don't like having 'private' placed before my access modifiers. They're all private by default anyways and it's just visual clutter.
How do I turn off resharper constantly tagging everything with 'private'?
ReSharper 9.1
ReSharper -> Options -> Code Editing -> C# -> Code Style -> Modifiers -> Use explicit private modifier (Un-Check)
**ReSharper 2016.1
ReSharper -> Options -> Code Editing -> C# -> Code Style -> Modifiers ->
In the ReSharper Options menu, go to Code Editing -> C# -> Formatting Style -> Other and disable explicit private modifier.