Announcement

Collapse
No announcement yet.

Ignore whitespace

Collapse
X
 
  • Time
  • Show
Clear All
new posts

  • Ignore whitespace

    Hi,

    I'm having trouble ignoring all whitespace differences between two files.

    - language is c
    - I want to ignore ALL whitespace differences both in comments and code
    * before, after and between

    How or can this be done?

  • #2
    Hi,

    use the following settings:

    enable checkbox Tools-->FileFormats->C/C++

    View-->Ignore unimportant Differences

    This should work for u.

    Michael

    Comment


    • #3
      Whitespace should be unimportant by default in the C file format.
      Toggle the Ingnore Differences button [] on the toolbar to hide unimportant differences in your compare.
      BC v4.0.7 build 19761
      ¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯

      Comment


      • #4
        This is why I've written that C files (rule ?) should be checked. BC3 has to be told that the extension *.C should be handled via *.C rule.

        Ingnore Differences button [≈], has the same effect as View-->Ignore unimportant Differences

        Michael

        Comment


        • #5
          Michael - Yes, I am aware I said the same thing in a different way. I wasn't refuting your post... I was answering the original post in my own way.

          Joe - If your files have different file extentions than the ones defined in the BC3 format for C files (for example, C code saved in txt files) you can make sure that the View \ File Info bar is enabled, then override the default file format that BC3 detected when the comparison was opened. The File Info bar sits right under MRU droplist on each side of the compare. The File Info bar has a File Format droplist. Simply drop the list and select "C,C++,C# Source" from the droplist on both sides.
          BC v4.0.7 build 19761
          ¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯

          Comment

          Working...
          X
          😀
          🥰
          🤢
          😎
          😡
          👍
          👎