본문 바로가기

Code6

이클립스 코드정렬에서 span 태그 정렬 이클립스 코드정렬에서 span 태그 정렬 이클립스에서 Ctrl + Shift + f 키를 눌러서 코드 정렬을 실행합니다. 이름 생년월일 달력 성별 위와 같이 span 태그가 구분되지 않고 한줄에 나오는 경우 옵션을 수정합니다. 옵션 수정 메뉴 Window -> Preferences -> Web -> HTML Files -> Editor 를 선택합니다. 우측 Line width 의 값을 999로 수정합니다. (혹은 알맞은 수로 변경합니다. 한줄에 나오는 최대 문자열 수 입니다.) inline Elements 에서 span을 선택한 후 Remove 버튼을 클릭하여 해당 태그를 제거합니다. 이후 Ctrl + Shift + f 키를 눌러서 코드 정렬을 실행합니다. 이름 생년월일 달력 span 태그가 새 줄로 정.. 2017. 6. 29.
[Javascript] 코드 태그에서 공백(빈줄)제거 [Javascript] 코드 태그에서 공백(빈줄)제거 typora 에서 작성한 마크다운을 HTML 로 변환하여 티스토리에 글을 올리는 경우 code 부분에서 빈줄이 생기는 문제점이 발생한다. (VS code 에서 변환하는 경우는 빈줄이 생기지 않는다.) 예를 들어 #!/usr/bin/env python3 from urllib.parse import quote from urllib.request import urlopen url = 'http://wikipedia.org/wiki/' + quote("한글") content = urlopen(url).read() 위의 코드를 입력하면, 이 처럼 맨 줄에 공백이 생긴다. 개발자 도구에서 확인해 보면 " 로 맨 윗줄에 줄바꿈이 있는 것을 확인할 수 있다. 이를 .. 2017. 3. 17.
[VScode] 비주얼 스튜디오 코드에서 한 줄 지우기 단축키 Visual Studio Code Delete Line 비주얼 스튜디오 코드에서 한 줄 지우기 단축키 Ctrl + Shift + K Autohotkey 작성 평소에 쓰던 단축키 Ctrk+D로 변경하기 위해 Autohotkey를 작성한다. #ifWinActive ahk_exe Code.exe ^d::Send ^+k #ifWinActive 비주얼 스튜디오 코드에서만 단축키가 변경되기 위해서 #ifWinActive를 사용한다. 소스파일 : visual_studio_code.ahk 실행파일 : visual_studio_code.exe 출처 Key Bindings for Visual Studio Code 2016. 5. 23.
[ionic] visual studio code 에서 ionic2 코드를 열었을 때에 experimentalDecorators 관련 에러 visual studio code 에서 ionic2 코드를 열었을 때에 experimentalDecorators 관련 에러가 발생하면 jsconfig.json파일을 추가 한다. [js] Experimental support for decorators is a feature that is subject to change in a future release. Set the 'experimentalDecorators' option to remove this warning. 이와 같은 에러가 발생하면, 프로젝트 루트에 jsconfig.json 파일을 생성한다. 파일의 내용은 아래와 같다. { "compilerOptions": { "emitDecoratorMetadata": true, "experimentalDe.. 2016. 5. 14.
[ionic] firebase 사용하기 [ionic] firebase 사용하기firebase에 가입합니다. https://www.firebase.com app 주소를 확인합니다.index.html 에 아래 내용을 추가합니다. js 파일을 수정합니다. import {Page} from 'ionic-angular'; @Page({ templateUrl: 'build/pages/getting-started/getting-started.html' }) export class GettingStartedPage { constructor() { this.key; this.val; this.myDataRef = new Firebase("https://YOUR_APP.firebaseio.com/sidemenu/"); this.displayMsg('msg ch.. 2016. 5. 13.
[Spring] JDBC 설정 [Spring] JDBC 설정 DataSource 설정 JdbcTemplate 생성 JdbcTemplate 를 사용한다. JdbcTemplate template; UserRowMapper 클래스 생성RowMapper 를 구현한다. class UserRowMapper implements RowMapper{ @Override public UserVO mapRow(ResultSet arg0, int arg1) throws SQLException { // TODO Auto-generated method stub return null; } } 컬럼데이터를 바이딩해 준다. class UserRowMapper implements RowMapper { @Override public UserVO mapRow(Result.. 2016. 4. 24.