By VS Code has some poor default configurations, lets undo some of those sins.
- Access Settings to begin:
Ctrl + ,
Always start VS Code with a fresh slate. Don't restore previously opened tabs or projects.
| ;SMBDIS.ASM - A COMPREHENSIVE SUPER MARIO BROS. DISASSEMBLY | |
| ;by doppelganger (doppelheathen@gmail.com) | |
| ;This file is provided for your own use as-is. It will require the character rom data | |
| ;and an iNES file header to get it to work. | |
| ;There are so many people I have to thank for this, that taking all the credit for | |
| ;myself would be an unforgivable act of arrogance. Without their help this would | |
| ;probably not be possible. So I thank all the peeps in the nesdev scene whose insight into | |
| ;the 6502 and the NES helped me learn how it works (you guys know who you are, there's no |
| --- | |
| # References: | |
| # - https://clang.llvm.org/docs/ClangFormatStyleOptions.html | |
| # - Terminal - https://github.com/microsoft/terminal/blob/main/.clang-format | |
| BasedOnStyle: Microsoft | |
| AlignConsecutiveMacros: true | |
| AlignConsecutiveAssignments: | |
| Enabled: true | |
| AcrossEmptyLines: false |
| namespace TestApp.Models.Settings; | |
| [System.Diagnostics.CodeAnalysis.SuppressMessage("StyleCop.CSharp.DocumentationRules", "SA1649:File name should match first type name", Justification = "This is small utility.")] | |
| public static class Key | |
| { | |
| public const string AutoStartApp = "AutoStartApp"; | |
| public const string Ping1Enabled = "ping1-enabled"; | |
| public const string Ping1Host = "ping1-host"; | |
| } |
| using System; | |
| using System.ComponentModel; | |
| using System.Globalization; | |
| using System.Reflection; | |
| using Avalonia.Data.Converters; | |
| namespace Diagnostics.Converters; | |
| public class EnumDescriptionConverter : IValueConverter | |
| { |
| // The following was tested using RolsynPad 20.0 | |
| using System; | |
| using System.Collections.Generic; | |
| using System.IO; | |
| using System.Linq; | |
| // Example usage | |
| var ini = new IniFile(); | |
| ini.Load("config.ini"); |
| using Microsoft.Maui.Storage; | |
| using System.Security.Cryptography; | |
| using System.Text; | |
| // Based on: https://github.com/soyfrien/ImageCache | |
| namespace MyProjectNamespace; | |
| /// <summary> | |
| /// Use this class to cache images from the Internet. | |
| /// Its functions receive a URI and turn the resource into an ImageSource, byte array, Stream, or Func‹Stream›. |