wEb

압타나에서 보다 편하게 보기 위해 정렬된 사스(SASS)형태로 포맷을 바꾸자~!

dd2i 2013. 10. 8. 13:01
반응형

 

aptana : changing content types .scss format to .css format 

압타나에서 .scss 파일을 열어 보면 문단정렬이 되지 않는다~ 억.

들여쓰기도. 탭도. 이상하게 작동..



이런 경우 툴바의 window > preferences 에 들어가서 .scss 의 file associations을 수정해준다. 

file types 에서 .scss를 선택 후

associated editors에 css source editor을 추가하고, 이 값을 default 로 지정해주면 정렬된 .scss의 포맷을 볼 수 있다. (정렬이 안되었다면. 창을 닫았다가 다시 열어보자.) 





 

Part 1 - Associate the .scss file type with the native Eclipse CSS Editor

  1. Go to Window > Preferences

  2. Drill down to General > Editors > File Associations

  3. In File Associations pane, click the 'Add..." button on the top right.

  4. For File Type:, enter *.scss and then click OK.

  5. Find the *.scss entry in the File Associations list and select it.

  6. After selecting *.scss, on the bottom pane Associated editors:, click the Add... button.

  7. Make sure Internal editors is selected on the top, then find and select CSS Editor and then click OK.

This associated the file type .scss with eclipses native CSS Editor. Now we have to configure the native CSS Editor to support .scss files. To do this, follow this steps:

Part 2 - Add the .scss file type to the native CSS Editor

  1. Go to Window > Preferences

  2. Drill down to General > Content Types

  3. In the Content Types pane, expand Text, then select CSS

  4. After CSS is selected, on the bottom File associations: pane, click the Add... button.

  5. For Content type:, enter *.scss and then click OK.

  6. Click OK to close out the Preferences window.

All done. All you need to do now is close any .scss files that you have open then re-open them and wha-la, css colors in Eclipse for .scss files!

Note: If the css colours do not appear you may have to do the following: Right click the .scss file > Open With > CSS Editor.

Hope this helps.

http://stackoverflow.com/questions/7614612/is-there-an-eclipse-editor-for-sasss-scss-files-or-syntax-coloring-plugin#answer-12322531

반응형