How to exclude css files from auto formatting in IntelliJ

Flo

We're using the auto formatting feature of IntelliJ to format our code whenever a commit to git is made.

The formatting works well for us except for our designer who's not happy with the way how IntelliJ formats his CSS files. Is there a way to deactivate auto formatting for certain file types?

Jörg Pfründer

Since IDEA 13 it is possible to deactivate formatting with

/* @formatter:off */

and reactivate with

/* @formatter:on */

But you need to enable that first in Settings -> Code Style -> General -> Formatter Control

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

From Dev

How to turn off auto-formatting in IntelliJ 14 for play routing files?

From Dev

Exclude project\folder from "Navigate Files" in IntelliJ

From Dev

How to exclude files from merging?

From Dev

How to exclude files from merging?

From Dev

How to exclude files from ubdatedb?

From Dev

IntelliJ + groovy DSL: How to exclude files from being compiled by groovy plugin?

From Dev

Intellij Idea and auto formatting : spaces

From Dev

Auto complete HTML attribute from CSS Intellij

From Dev

How to turn off VS Code auto-formatting for Markdown files?

From Dev

How to exclude files from glob with # or ~ at the beginning?

From Dev

How to exclude webstorm files from search results

From Java

How to exclude files from "format on save" in VSCode?

From Dev

How to exclude files from git id expansion

From Dev

How to exclude files in torrent from download?

From Dev

How to exclude cpp files from project in Qt

From Dev

how to exclude typescript compiled files from git

From Dev

How to exclude files in torrent from download?

From Dev

How to exclude some files and extensions from indexing?

From Dev

IntelliJ - Suppress code auto-formatting

From Dev

How to exclude an entire directory from Android 6 Auto Backup?

From Dev

How does one exclude a zpool from zfs-auto-snapshot

From Java

How to exclude a file extension from IntelliJ IDEA search?

From Dev

How to exclude source code from coverage measurement in IntelliJ IDEA?

From Dev

How do I exclude files from git ls-files?

From Dev

Exclude files from "checkJS"

From Dev

Sails.js specify JS files to exclude from auto-insertion

From Dev

How to exclude files in rsync?

From Dev

How to exclude files in rsync?

From Java

how to change VS Code line auto wrap column when formatting dart files?

Related Related

  1. 1

    How to turn off auto-formatting in IntelliJ 14 for play routing files?

  2. 2

    Exclude project\folder from "Navigate Files" in IntelliJ

  3. 3

    How to exclude files from merging?

  4. 4

    How to exclude files from merging?

  5. 5

    How to exclude files from ubdatedb?

  6. 6

    IntelliJ + groovy DSL: How to exclude files from being compiled by groovy plugin?

  7. 7

    Intellij Idea and auto formatting : spaces

  8. 8

    Auto complete HTML attribute from CSS Intellij

  9. 9

    How to turn off VS Code auto-formatting for Markdown files?

  10. 10

    How to exclude files from glob with # or ~ at the beginning?

  11. 11

    How to exclude webstorm files from search results

  12. 12

    How to exclude files from "format on save" in VSCode?

  13. 13

    How to exclude files from git id expansion

  14. 14

    How to exclude files in torrent from download?

  15. 15

    How to exclude cpp files from project in Qt

  16. 16

    how to exclude typescript compiled files from git

  17. 17

    How to exclude files in torrent from download?

  18. 18

    How to exclude some files and extensions from indexing?

  19. 19

    IntelliJ - Suppress code auto-formatting

  20. 20

    How to exclude an entire directory from Android 6 Auto Backup?

  21. 21

    How does one exclude a zpool from zfs-auto-snapshot

  22. 22

    How to exclude a file extension from IntelliJ IDEA search?

  23. 23

    How to exclude source code from coverage measurement in IntelliJ IDEA?

  24. 24

    How do I exclude files from git ls-files?

  25. 25

    Exclude files from "checkJS"

  26. 26

    Sails.js specify JS files to exclude from auto-insertion

  27. 27

    How to exclude files in rsync?

  28. 28

    How to exclude files in rsync?

  29. 29

    how to change VS Code line auto wrap column when formatting dart files?

HotTag

Archive