header-img
Info :
728x90

c# ๊ฐœ๋ฐœ์„ ํ•ด๋ณธ ์‚ฌ๋žŒ๋“ค์€ ๋ฐฉ๋Œ€ํ•ด์ง€๋Š” ์ฝ”๋“œ๋ฅผ ๊น”๋”ํ•˜๊ฒŒ ์ •๋ฆฌํ•ด์„œ ๋ณด๊ธฐ ์œ„ํ•ด Region ์ด๋ผ๋Š” ๊ธฐ๋Šฅ์„ ์“ด๋‹ค.

๋ฆฌ์•กํŠธ์—์„œ๋„ ์ฝ”๋“œ๊ฐ€ ๊ธธ์–ด์ง€๋‹ˆ ๋ฌธ๋‹จ๋ณ„ ์ ‘๊ธฐ ๋ง๊ณ  ๋‚ด๊ฐ€ ์ง€์ •ํ•œ Region ๋งŒํผ๋งŒ ์ ‘๊ณ  ํŽด๊ณ ๋ฅผ ํ•˜๊ณ  ์‹ถ์€๋ฐ..

React ์—์„œ๋Š” ์–ด๋–ค ์‹์œผ๋กœ ์ง„ํ–‰ํ•ด์•ผ ํ• ๊นŒ?

 

๊ฐœ๋ฐœ ํ™˜๊ฒฝ(intelliJ, vsCode) ์— ๋”ฐ๋ฅธ ์‚ฌ์šฉ ๋ฐฉ๋ฒ•์— ๋Œ€ํ•ด ์•Œ์•„๋ณด๋„๋ก ํ•˜๊ฒ ๋‹ค.

 

์šฐ์„ ..

#region ์ด๋ž€?

๋‚ด๊ฐ€ ์ฝ”๋“œ๋ฅผ ์ ‘๊ณ  ํŽด๊ณ  ์‹ถ์€ ๋ถ€๋ถ„์˜ ์˜์—ญ์„ ์ง€์ •ํ•ด์ฃผ๋Š” ๊ฒƒ!

#region ์„ ์‚ฌ์šฉํ•˜๊ฒŒ ๋˜๋ฉด #endregion ์œผ๋กœ ์ง€์‹œ๋ฌธ์„ ์ข…๋ฃŒ ํ•ด์•ผํ•˜๋ฉฐ, visual studio ์—์„œ #region์—์„œ ๋ฐ”๋กœ ๋‹ค์Œ์œผ๋กœ ๋‚˜์˜ค๋Š” #endregion๊นŒ์ง€์˜ ์ฝ”๋“œ๋ฅผ ํ™•๋Œ€, ์ถ•์†Œํ•˜๋ฉฐ ์ž‘์—…์„ ์ง„ํ–‰ํ•  ์ˆ˜ ์žˆ๊ฒŒ ํ•ด์ค€๋‹ค.

 

1. intelliJ์—์„œ ์‚ฌ์šฉํ•˜๋Š” ๋ฐฉ๋ฒ•

 

	//region ์ ‘์—ˆ์„ ๋•Œ ๋ณด์—ฌ์ฃผ๊ณ  ์‹ถ์€ ๋ฉ˜ํŠธ
	...
	//endregion

 

 

2. VisualStudio Code (VS Code)์—์„œ ์‚ฌ์šฉํ•˜๋Š” ๋ฐฉ๋ฒ•

 

 

#region folding for VS Code - Visual Studio Marketplace

Extension for Visual Studio Code - Provides folding for text wrapped with #region comments in VS Code.

marketplace.visualstudio.com

 

์œ„์˜ extension ์„ ์„ค์น˜ํ•œ ํ›„ ์•„๋ž˜์™€ ๊ฐ™์ด ์‚ฌ์šฉํ•˜๋ฉด ๋œ๋‹ค.

 

	//#region ์ ‘์—ˆ์„ ๋•Œ ๋ณด์—ฌ์ฃผ๊ณ  ์‹ถ์€ ๋ฉ˜ํŠธ
	...
	//#endregion

 

 

์•„์ฃผ ๊ฐ„๋‹จํ•˜์ฃต?

 

 

 

728x90
๋”๋ณด๊ธฐ
FRONTEND/React