Skip to content

Instantly share code, notes, and snippets.

@saurabh-sp-tripathi
Last active August 2, 2018 18:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save saurabh-sp-tripathi/4346e409a8fd1946e1822bb16752d34c to your computer and use it in GitHub Desktop.
Save saurabh-sp-tripathi/4346e409a8fd1946e1822bb16752d34c to your computer and use it in GitHub Desktop.
Intellij shortcut keys
  • Search action/command : ctrl + shift + a
  • switch vim : alt + T => ctrl + alt + v
  • methods : ctrl+F12
  • goto line : ctrl + g
  • select and paste recent clipboard: ctrl+shift+v
  • back and forth curson ctrl + alt + <- or ->

Fresh set up

  • Add required imports : Setting (ctrl + alt + s) => General => Auto import => check: Add unambigous improt

Maven Spring-boot Debug

  • Edit run config -> add Remote -> give name & port=8000 -> apply
  • mvnDebug spring-boot:run
	<plugin>
		<groupId>org.springframework.boot</groupId>
		<artifactId>spring-boot-maven-plugin</artifactId>
		<configuration>
			<jvmArguments>
				-Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=8000
			</jvmArguments>
		</configuration>
	</plugin>

Refactoring - Remove try catch

ctrl + {
ctrl + shift + }
ctrl + x
Home
ctrl + {
ctrl + shift + }
del

ctrl + v

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment